1

If a computed field is computed at run-time when storageType is set to no, does does the index need to be rebuilt at all as it's all done in memory?

1 Answer 1

2

I think you are misunderstanding how a computed field and the storage type works.

The storageType has nothing to do with the content being added to the index. It just controls whether the content is stored along with the indexed values. If you store the content too, then you can retrieve the content out of the index. If you don't, then you can only search on that content, nothing is returned in the field value.

A computed field is never "computed" at run time, it is always computed at index time when the value is added to the index.

2
  • "content is stored along with the indexed values" which content? The IComputedIndexField value returned or the field values?
    – Adam Hess
    Commented Mar 1, 2019 at 16:09
  • The content returned by the computed field method.
    – Richard Seal
    Commented Mar 1, 2019 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.