Is there any way to replace null values during indexing?

is there any way to replace null values during indexing ? with the help of mapping ?

Hi @varaprasad_kodali welcome to the community, and sorry for the delay!

In short, no. There’s no method to pre-process a document before indexing. If it can, then it’s not an index anymore, isn’t it :slight_smile:

Without knowing your use case, if you want to map the null values to something else, why not do it in the document itself? Alternatively, if you don’t want to index certain part of a collection, you might be able to use partial indexes. However please note that partial indexes is a special index type and it comes with caveats (see the linked page for more details).

Best regards
Kevin

1 Like