OnIndexing: some Store(), some not. Why?

Topics: Core
Developer
May 13, 2013 at 8:32 PM
CommonPartHandler has e.g.
context.DocumentIndex
    .Add("type", commonPart.ContentItem.ContentType).Analyze().Store()
(Note Analyze().Store().)

BodyPartHandler:
context.DocumentIndex
    .Add("body", bodyPart.Record.Text).RemoveTags().Analyze()
     .Add("format", bodyPart.Record.Format).Store())
Note Analyze() vs Store(), no Analyze().Store().

Why is this, what's the real difference? With Analyze() alone search is possible, Store() also makes it possible to retrieve the value from the search hit even. But what was the logic behind deciding what to store and what not?
Coordinator
May 13, 2013 at 8:45 PM
Reasons:
  • potential size of the content
  • meaningfulness of each field
Developer
May 13, 2013 at 8:53 PM
Thanks!