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 ?