Basically, the problem is that query keyword "pizza" occurs in 4 out of 10
values in multi-valued field "TEST_KEYWORDS"; in the first two
matching/highlighting, only "pizz" is highlighted with an extra space
beforehand (<em> pizz</em>), and "a" is left behind; and in the other two
highlighting, "pizza" is correctly highlighted.

Any hints on this weirdness?

thanks,
- dz

here's the data

<arr name="TEST_KEYWORDS">
<str>little caesars</str>
<str>little caesars pizza</str>
<str>little ceasers</str>
<str>little ceasars pizza</str>
<str>little ceasers pizza</str>
<str>little ceasars</str>
<str>little ceasar</str>
<str>Little Caesar</str>
<str>little cesar</str>
<str>little ceasar pizza</str>
</arr>
<str name="id">2664694</str>

and the following is the highlight for this field

<lst name="2664694">
−
<arr name="TEST_KEYWORDS">
−
<str>
little caesars<em> pizz</em>a
</str>
−
<str>
little ceasars<em> pizz</em>a
</str>
−
<str>
little ceasers <em>pizza</em>
</str>
−
<str>
little ceasar <em>pizza</em>
</str>
</arr>
</lst>
-- 
View this message in context: 
http://old.nabble.com/highlight-multi-valued-field-returns-weird-cut-off-highlighted-terms-tp27785795p27785795.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to