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

Alessandro Benedetti commented on SOLR-16912:
---------------------------------------------

Hi Thomas,
this is not a bug, the queryFieldType is used to analyze both the incoming 
query/queryToElevate and split the text in tokens (as in any other Solr text 
analysis pipeline).

Once you have the tokens, an exact concatenated match OR just an unordered 
intersection happens.

If a string analysis is used, a single token is generated and no intersection 
can happen.


> Query Elevation does not work with match=subset option
> ------------------------------------------------------
>
>                 Key: SOLR-16912
>                 URL: https://issues.apache.org/jira/browse/SOLR-16912
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 8.3, 8.11.2, 9.3
>            Reporter: Tom Chopin
>            Priority: Major
>
> When the `match=subset` option is given inside elevate.xml, results are not 
> elevated even if their search terms are a subset of the user's query. In 
> other words the elevation works the same way irrespective of whether the 
> `match=subset` option is given or not.
>  
> _Steps to reproduce:_
> 1. Load the techproducts example
> 2. Set the techproducts example's elevate.xml to:
>  
> {code:java}
> <elevate>
>   <query text="foo bill" match="subset">
>     <doc id="IW-02" />
>   </query>
> </elevate>{code}
>  
> 3. The folllowing query should trigger "IW-02" to appear in the results, but 
> it does not:
> [http://localhost:8983/solr/techproducts/elevate?q=foo%20bill%20bar|http://localhost:8983/solr/techproducts/elevate?q=foo%20bill]
> However the elevation can be seen to be working with the query:
> [http://localhost:8983/solr/techproducts/elevate?q=foo%20bill]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to