Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Implemented
-
4.0-ALPHA
-
None
-
java Tomcat Solaris
Description
It is being observed that words are getting truncated at the start of Highlighter fragment displayed.
Following boundary scanner settings are introduced inside in the solrconfig.xml file
<str name="hl.bs.chars">.,!? 	 </str>
If I change the settings to
<str name="hl.bs.chars">.,!?</str>
then it is seen that this issue goes away but another issues comes up where the highlighted search fragment does not start from the beginning of the sentence.
Below is the complete list of setting we are using for boundary scanner.
<boundaryScanner name="simple" class="solr.highlight.SimpleBoundaryScanner" default="true">
<lst name="defaults">
<str name="hl.bs.maxScan">200</str>
<str name="hl.bs.chars">.,!? 	 </str>
</lst>
</boundaryScanner>
<boundaryScanner name="breakIterator" class="solr.highlight.BreakIteratorBoundaryScanner">
<lst name="defaults">
<str name="hl.bs.type">SENTENCE</str>
<str name="hl.bs.language">en</str>
<str name="hl.bs.country">US</str>
</lst>
</boundaryScanner>
Attachments
Issue Links
- is related to
-
LUCENE-1822 FastVectorHighlighter: SimpleFragListBuilder hard-coded 6 char margin is too naive
- Closed