Here is a summary of available options on a field, broken down by use case. A true or false indicates that the option must be set to the given value for the use case to function correctly.

use case

indexed

stored

multiValued

omitNorms

termVectors

termPositions

termOffsets

search within field

true

 

 

 

 

 

 

retrieve contents

 

true

 

 

 

 

 

use as unique key

true

 

false

 

 

 

 

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1999d958-eef8-4b07-8bae-ef411e80482c"><ac:plain-text-body><![CDATA[

sort on field

true

 

false

true [1]

 

 

 

]]></ac:plain-text-body></ac:structured-macro>

use field boosts

 

 

 

false

 

 

 

document boosts affect searches within field

 

 

 

false

 

 

 

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a35af915-0c4b-4af2-ae65-a376df75bd9d"><ac:plain-text-body><![CDATA[

highlighting

true[3]

true

 

 

[2]

[2]

[2]

]]></ac:plain-text-body></ac:structured-macro>

faceting

true

 

 

 

 

 

 

add multiple values, maintaining order

 

 

true

 

 

 

 

field length affects doc score

 

 

 

false

 

 

 

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="711d507a-4a1a-4675-bff6-d05232068898"><ac:plain-text-body><![CDATA[

MoreLikeThis

 

true[5]

 

 

true[5]

 

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c188c891-4707-4adc-94d5-adb537148dc3"><ac:plain-text-body><![CDATA[

term frequency[4]

 

 

 

 

true

 

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c7b1b845-03fe-4106-a764-8a8ffe7e294a"><ac:plain-text-body><![CDATA[

document frequency[4]

 

 

 

 

true

 

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e694cd67-7c10-4ee8-9c11-37b5459bbccc"><ac:plain-text-body><![CDATA[

tf*idf[4]

 

 

 

 

true

 

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e575ff64-8d53-4642-829f-ef1f134a010c"><ac:plain-text-body><![CDATA[

term postitions[4]

 

 

 

 

true

true

true

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c3e166e0-c05b-40a2-99f4-e54ca0ed58ac"><ac:plain-text-body><![CDATA[

term offsets[4]

 

 

 

 

true

true

true

]]></ac:plain-text-body></ac:structured-macro>

Notes:

  1. recommended but not necessary
  2. stored must always be true for highlighting. If you also add both termVectors and termOffsets, this can be used to boost performance. (Without termVectors/termOffsets, Solr needs to reanalyze the whole field to perform highlighting.) If you furthermore add termPositions, additional speedup may be possible. Note, that you must index the field in order to be able to use termVectors, termOffsets and termPositions.
  3. a tokenizer must be defined for the field, but it doesn't need to be indexed
  4. For use with the TermVectorComponent
  5. Uses the term vector if present, otherwise the stored field. Reanalyzes the document if using the stored field.

For further considerations for faceting, see also SolrFacetingOverview. For more information on term frequency, positions, offsets etc. see TermVectorComponent.

  • No labels