You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Teague James <te...@insystechinc.com> on 2017/01/18 20:58:19 UTC

Solr 6.0.0 Returns Blank Highlights for Certain Queries

Hello everyone! I have a Solr 6.0.0 instance that is storing documents
peppered with text like "1a", "2e", "4c", etc. If I search the documents for
a word, "ms", "in", "the", etc., I get the correct number of hits and the
results are highlighted correctly in the highlighting section. But when I
search for "1a" or "2e" I get hits, but the highlights are blank:

<lst name="highlighting">
<lst name="8667"/>

Where "8667" is the document ID of the record that had the hit, but no
highlight. Other searches, "ms" for example, return:

<lst name="highlighting">
 <lst name="8667"/>
  <arr name="text">
   <str>
    <em>MS</em>
   </str>
  </arr>
 </lst>
</lst>

Why does highlighting fail for "1a" type searches? Any help is appreciated!
Thanks!

-Teague James