11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

hl.usePhraseHighlighter true If set to true, <strong>Solr</strong> will highlight phrase queries (and<br />

other advanced position-sensitive queries)<br />

accurately. If false, the parts of the phrase will be<br />

highlighted everywhere instead of only when it forms<br />

the given phrase.<br />

hl.highlightMultiTerm true If set to true, <strong>Solr</strong> will highlight wildcard queries (and<br />

other MultiTermQuery subclasses). If false, they<br />

won't be highlighted at all.<br />

hl.regex.slop 0.6 When using the regex fragmenter (hl.fragmenter<br />

=regex), this parameter defines the factor by which<br />

the fragmenter can stray from the ideal fragment<br />

size (given by hl.fragsize) to accommodate a<br />

regular expression. For instance, a slop of 0.2 with h<br />

l.fragsize=100 should yield fragments between<br />

80 and 120 characters in length.<br />

It is usually good to provide a slightly smaller hl.fr<br />

agsize value when using the regex fragmenter.<br />

hl.regex.pattern blank Specifies the regular expression for fragmenting.<br />

This could be used to extract sentences.<br />

hl.regex.maxAnalyzedChars 10000 Instructs <strong>Solr</strong> to analyze only this many characters<br />

from a field when using the regex fragmenter (after<br />

which, the fragmenter produces fixed-sized<br />

fragments). Applying a complicated regex to a huge<br />

field is computationally expensive.<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, only<br />

values that match the highlight request will be<br />

returned.<br />

hl.payloads (automatic) When hl.usePhraseHighlighter is true and the<br />

indexed field has payloads but not term vectors<br />

(generally quite rare), the index's payloads will be<br />

read into the highlighter's memory index along with<br />

the postings. If this may happen and you know you<br />

don't need them for highlighting (i.e. your queries<br />

don't filter by payload) then you can save a little<br />

memory by setting this to false.<br />

Related Content<br />

HighlightingParameters from the <strong>Solr</strong> wiki<br />

Highlighting javadocs<br />

FastVector Highlighter<br />

The FastVectorHighlighter is a TermVector-based highlighter that offers higher performance than the standard<br />

highlighter in many cases. To use the FastVectorHighlighter, set the hl.useFastVectorHighlighter param<br />

eter to true.<br />

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

317

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

Saved successfully!

Ooh no, something went wrong!