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

ASF subversion and git services commented on SOLR-16111:
--------------------------------------------------------

Commit fba1330e8494f20ab9724d7c1764137aeabff2ad in solr's branch 
refs/heads/branch_9x from Christine Poerschke
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=fba1330e849 ]

SOLR-16111: hl.queryFieldPattern support (advanced alternative to 
hl.requireFieldMatch) (#757)

(cherry picked from commit 96c1577987412004b5df653bdebe2eb1d470e624)


> hl.queryFieldPattern support (advanced alternative to hl.requireFieldMatch)
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-16111
>                 URL: https://issues.apache.org/jira/browse/SOLR-16111
>             Project: Solr
>          Issue Type: New Feature
>          Components: highlighter
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Major
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> Use case: a search referencing multiple fields and highlighting is required 
> for one of the fields: {{q=fieldA:one OR fieldB:two OR fieldC:three}} 
> {{hl.fl=fieldA}}
> * {{hl.requireFieldMatch=true}} can be used if highlighting of the terms 
> ("two", "three") from the fieldB and fieldC is a problem.
> * {{hl.q=fieldA:one OR fieldB:two}} can be used if highlighting of the fieldB 
> term is good but fieldC terms are a problem.
> _New feature:_ {{hl.queryFieldPattern=fieldA,fieldB}} as an alternative to 
> {{hl.q=fieldA:one OR fieldB:two}} e.g. if obtaining {{hl.q}} from {{q}} poses 
> complexity.
> There's already a TODO comment present in the code regarding this: 
> https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.11.1/solr/core/src/java/org/apache/solr/highlight/UnifiedSolrHighlighter.java#L418
> {code}
> // TODO define hl.queryFieldPattern as a more advanced alternative to 
> hl.requireFieldMatch.
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to