[ 
https://issues.apache.org/jira/browse/SOLR-13367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Smiley reassigned SOLR-13367:
-----------------------------------

      Assignee: David Smiley
    Attachment: SOLR-13367.patch

With LUCENE-8848 (not committed yet; I posted this today), I think the only 
thing remaining is for SolrRangeQuery.ConstWeight to implement matches().  
Attached is a patch copying the implementation from 
MultiTermQueryConstantScoreWrapper.  I needed to use DisjunctionMatchesIterator 
which was package accessible but seemed appropriate to be public as 
"lucene.experimental".  Does this seem fine [~romseygeek]?

> 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
>          Components: highlighter
>    Affects Versions: 7.7.1, 7.5
>         Environment: RedHat Linux v7
> Java 1.8.0_201
>            Reporter: Karl Wolf
>            Assignee: David Smiley
>            Priority: Major
>         Attachments: SOLR-13367.patch
>
>          Time Spent: 20m
>  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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to