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

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

After further testing, it has emerged that this *does* work in techproducts 
when the field type is set to text_general:

 
{code:xml}
  <searchComponent name="elevator" class="solr.QueryElevationComponent" >
    <str name="queryFieldType">text_general</str><!-- subset matching doesn't 
work if this is "string" -->
    <str name="config-file">elevate.xml</str>
  </searchComponent> {code}
This is not mentioned in the [docs for this 
feature|https://solr.apache.org/guide/solr/latest/query-guide/query-elevation-component.html#the-elevate-xml-file],
 so when working with entirely lower case strings, it isn't clear if this is a 
genuine bug or simply an omission from the reference guide.

 

> 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