Looks like this has to do with the selection of  fast vector and
breakIterator as boundary scanner. I'm using them to make sure that the
highlighted snippet starts from the beginning of a  sentence and not from
the middle.

<str name="hl.usePhraseHighlighter">false</str>
<str name="hl.useFastVectorHighlighter">true</str>
<str name="hl.boundaryScanner">breakIterator</str>

Now, if I don't use them, I'm getting the right pre and post tags.

<str name="hl">on</str>
<str name="hl.fl">title name</str>
<str name="hl.encoder">html</str>
<str name="hl.simple.pre"></str>
<str name="hl.simple.post"></str>
<str name="f.title.hl.fragsize">0</str>
<str name="f.title.hl.alternateField">manu</str>
<str name="f.name.hl.fragsize">0</str>
<str name="f.name.hl.alternateField">name</str>
<str name="f.content.hl.snippets">3</str>
<str name="f.content.hl.fragsize">200</str>


Do i need any separate setting or "breakIterator" to support custom pre and
post tags?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlighting-simple-pre-and-simple-post-values-getting-ignored-tp4168657p4168662.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to