You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/06/13 23:23:09 UTC
[Solr Wiki] Update of "HighlightingParameters" by TomBurtonWest
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "HighlightingParameters" page has been changed by TomBurtonWest:
http://wiki.apache.org/solr/HighlightingParameters?action=diff&rev1=29&rev2=30
The default value is "`1`".
== hl.fragsize ==
- The size, in characters, of fragments to consider for highlighting. "`0`" indicates that the whole field value should be used (no fragmenting). This parameter accepts per-field overrides.
+ The size, in characters, of fragments to consider for highlighting. "`0`" indicates that the whole field value should be used (no fragmenting). (Highlighter only) This parameter accepts per-field overrides.
The default value is "`100`".
@@ -74, +74 @@
The text which appears before and after a highlighted term when using the `simple` formatter. This parameter accepts per-field overrides.
The default values are "`<em>`" and "`</em>`"
+ This parameter makes sense for Highlighter only. Use hl.tag.pre and hl.tag.post for FastVectorHighlighter (see example under hl.fragmentsBuilder)
== hl.fragmenter ==
Specify a text snippet generator for highlighted text. The standard fragmenter is `gap` (which is so called because it creates fixed-sized fragments with gaps for multi-valued fields). Another option is `regex`, which tries to create fragments that "look like" a certain regular expression. This parameter accepts per-field overrides. <!> [[Solr1.3]] This parameter makes sense for Highlighter only.
@@ -118, +119 @@
Factor by which the regex fragmenter can stray from the ideal fragment size (given by `hl.fragsize`) to accomodate the regular expression. For instance, a slop of `0.2` with fragsize of `100` should yield fragments between `80` and `120` characters in length. It is usually good to provide a slightly smaller fragsize when using the `regex` fragmenter.
The default value is "`.6`"
+ This parameter makes sense for Highlighter only.
== hl.regex.pattern ==
The regular expression for fragmenting. This could be used to extract sentences (see example `solrconfig.xml`)
+ This parameter makes sense for Highlighter only.
== hl.regex.maxAnalyzedChars ==
Only analyze this many characters from a field when using the regex fragmenter (after which, the fragmenter produces fixed-sized fragments). Applying a complicated regex to a huge field is expensive.
The default value is "`10000`".
+ This parameter makes sense for Highlighter only.