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

Tom Chopin commented on SOLR-16912:
-----------------------------------

Hi Alessandro,

Thanks for the confirmation - after seeing your explanation it's pretty obvious 
ex post this is the way it should work!

Perhaps the user guide should be updated? They explicitly use the "string" 
queryFieldType in their example and never mention this dependency.

It's bound to catch out newer users like yours truly who do not twig that the 
phrase has to be tokenised for the subset option to be able to work.

> 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