: but I want solr to return me not only the best section but the best sections
: (that I precise the number my self )
: at first I thought that hl.snippet=<number> is suitable to generate best
: sections of text but I noticed that this parameter has no effect on the
: result of highlighting, even using it on per field like this:

note the documentation for hl.snippets ...

http://wiki.apache.org/solr/HighlightingParameters#head-23ecd5061bc2c86a561f85dc1303979fe614b956

        The maximum number of highlighted snippets to generate per field. 
        Note: it is possible for any number of snippets from zero to this 
        value to be generated.

I'm not positive, but i believe setting hl.mergeContiguous=false (new 
param in trunk) may help ... but it doesn't change the fact that ify ou 
only have one match, it can't geneate 3 snippets.

: the other question is why there is similar classes (HighlightingUtils.class
: and the GapFragmenter.class) with different name and which one is
: used:confused:

note that HighlightingUtils is deprecated.


-Hoss

Reply via email to