11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

hl.maxMultiValuedToExamine integer.MAX_VALUE Specifies the maximum number of entries in a<br />

multi-valued field to examine before stopping. This<br />

can potentially return zero results if the limit is<br />

reached before any matches are found. If used with<br />

the maxMultiValuedToMatch, whichever limit is<br />

reached first will determine when to stop looking.<br />

hl.maxMultiValuedToMatch integer.MAX_VALUE Specifies the maximum number of matches in a<br />

multi-valued field that are found before stopping. If h<br />

l.maxMultiValuedToExamine is also defined,<br />

whichever limit is reached first will determine when<br />

to stop looking.<br />

hl.alternateField blank Specifies a field to be used as a backup default<br />

summary if <strong>Solr</strong> cannot generate a snippet (i.e.,<br />

because no terms match). This parameter accepts<br />

per-field overrides.<br />

hl.maxAlternateFieldLength unlimited Specifies the maximum number of characters of the<br />

field to return. Any value less than or equal to 0<br />

means the field's length is unlimited. This parameter<br />

is only used in conjunction with the hl.alternate<br />

Field parameter.<br />

hl.tag.pre<br />

hl.tag.post<br />

and <br />

Specifies the text that should appear before (hl.ta<br />

g.pre) and after ( hl.tag.post) a highlighted<br />

term. This parameter accepts per-field overrides.<br />

hl.phraseLimit integer.MAX_VALUE To improve the performance of the<br />

FastVectorHighlighter, you can set a limit on the<br />

number (int) of phrases to be analyzed for<br />

highlighting.<br />

hl.usePhraseHighlighter true If set to true, <strong>Solr</strong> will use the Lucene SpanScorer<br />

class to highlight phrase terms only when they<br />

appear within the query phrase in the document.<br />

hl.preserveMulti false If true, multi-valued fields will return all values in the<br />

order they were saved in the index. If false, the<br />

default, only values that match the highlight request<br />

will be returned.<br />

hl.fragListBuilder weighted The snippet fragmenting algorithm. The weighted fr<br />

agListBuilder uses IDF-weights to order fragments.<br />

Other options are single, which returns the entire<br />

field contents as one snippet, or simple. You can<br />

select a fragListBuilder with this parameter, or<br />

modify an existing implementation in solrconfig.<br />

xml to be the default by adding "default=true".<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

319

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!