hi 

I am using highlighter component with
hl.frgmenter=regex&hl.regex.pattern=[-\w ,/\n]\"']{20,200}

Basically the  configuration that comes with fragmenter in highlighting
component in solrconfig.xml file.

My snippets don't start with start of sentence. 

I also tried boundary scanner 
&q=iphone&hl.boundaryScanner=simple&hl.fragsize=200&hl.fragmenter=regex&hl.fl=body

but that also does not help.
here is some highlighted output
===========================
.”
 The Minnesota Wild App is available for free from the App Store on iPhone
or at

. 
 The NCAA Football Fan Zone App Powered by XYZ company

here is solr.xml for bounadry scanner
<boundaryScanner name="simple" class="solr.highlight.SimpleBoundaryScanner"
default="true">
<lst name="defaults">
 <str name="hl.bs.maxScan">10</str>
 <str name="hl.bs.chars">.,!?\t\n</str>
 </lst>
</boundaryScanner>

Any help how I can fix this



--
View this message in context: 
http://lucene.472066.n3.nabble.com/highlighter-not-respecting-sentence-boundry-tp3984327.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to