Computed field helps us in doing some extra processing before adding the value to index.

While creating a computed index field, always try to return null, rather than String.Empty(unless it is important to have an empty value), because String.Empty takes space in the index, whereas when it is null, it is not added to the index.

By returning null value, we can save the space in the index.

Happy Learning 🙂