(12/02/08 0:50), Shyam Bhaskaran wrote:
Hi,
We are using Solr 4.0 along with FVH and there is an issue we are facing while
highlighting.
For our requirement we want the highlighted search result should start with the
beginning of the sentence and needed help to get this done.
As of now this is not happening and the highlighted output comes up first in
most scenarios.
I have tried using the parameter boundaryScanner but still not getting the
desired required result.
Below is the configuration we are using.
<boundaryScanner name="simple" class="solr.highlight.SimpleBoundaryScanner"
default="true">
<lst name="defaults">
<str name="hl.bs.maxScan">10</str>
<str name="hl.bs.chars">.,!?	 </str>
</lst>
</boundaryScanner>
I need help in getting the display of highlighted search result and it should
start with the beginning of the sentence that contains the search string.
Please provide more detail info, e.g. field data that you indexed and
undesirable snippet
you currently got.
And have you tried BreakIteratorBoundaryScanner with hl.bs.type=SENTENCE?
koji
--
http://www.rondhuit.com/en/