[ 
https://issues.apache.org/jira/browse/SOLR-13367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858664#comment-16858664
 ] 

David Smiley commented on SOLR-13367:
-------------------------------------

Thanks for reporting this.  The regression was introduced by SOLR-8037 (CC 
[[email protected]]) which introduced an new Query class internally 
–SolrRangeQuery one that the highlighters don't know about.  Thanks to recent 
improvements in Lucene that the hl.method=unified will use when 
hl.weightMatches=true, the highlighter (or at least this one) needn't be 
updated to know about new queries, at least usually not.  But this does require 
that each Query that is highlightable properly implement the "Weight Matches" 
API.  That API did not exist when SOLR-8037 was done, and when the API was 
added, some niche queries like this were not updated.

> Highlighting fails for Range queries on Multi-valued String fields
> ------------------------------------------------------------------
>
>                 Key: SOLR-13367
>                 URL: https://issues.apache.org/jira/browse/SOLR-13367
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: highlighter
>    Affects Versions: 7.5, 7.7.1
>         Environment: RedHat Linux v7
> Java 1.8.0_201
>            Reporter: Karl Wolf
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Range queries against multi-valued string fields produces useless 
> highlighting, even though "hl.highlightMultiTerm":"true"
> I have uncovered what I believe is a bug. At the very lease it is a 
> difference in behavior between Solr v5.1.0 and v7.5.0 (and v7.7.1).
> I have a multi-valued string Field defined in my schema as:
> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/> 
>  <field name="MyStringField" type="string" indexed="true" stored="true" 
> multiValued="true" />
> I am using a query containing a Range clause and I am using highlighting to 
> get the list of values that actually matched the range query.
> All examples below were using the appropriate Solr Admin Server SolrCore 
> Query page.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to