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.mergeContiguous false Instructs <strong>Solr</strong> to collapse contiguous fragments into<br />

a single fragment. A value of true indicates<br />

contiguous fragments will be collapsed into single<br />

fragment. This parameter accepts per-field<br />

overrides. The default value, false, is also the<br />

backward-compatible setting.<br />

hl.requireFieldMatch false If set to true, highlights terms only if they appear in<br />

the specified field. If false, terms are highlighted in<br />

all requested fields regardless of which field<br />

matched the query.<br />

hl.maxAnalyzedChars 51200 Specifies the number of characters into a document<br />

that <strong>Solr</strong> should look for suitable snippets.<br />

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.formatter simple Selects a formatter for the highlighted output.<br />

Currently the only legal value is simple, which<br />

surrounds a highlighted term with a customizable<br />

pre- and post-text snippet. This parameter accepts<br />

per-field overrides.<br />

hl.simple.pre<br />

hl.simple.post<br />

and <br />

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

mple.pre) and after ( hl.simple.post) a<br />

highlighted term, when using the simple formatter.<br />

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

hl.fragmenter gap Specifies a text snippet generator for highlighted<br />

text. The standard fragmenter is gap, which creates<br />

fixed-sized fragments with gaps for multi-valued<br />

fields. Another option is regex, which tries to create<br />

fragments that resemble a specified regular<br />

expression. This parameter accepts per-field<br />

overrides.<br />

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

316

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

Saved successfully!

Ooh no, something went wrong!