You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Holger Rieß <Ho...@werkzeug-eylert.de> on 2014/02/03 16:00:23 UTC

Elevation and nested queries

I have a simple query 'q=hurco' (parser type edismax). Elevation is properly configured, so I get the expected results:
...
<doc>
    <str name="id">7HURCO</str>
    <arr name="debtoritem">
      <str>0~*</str>
    </arr>
    <bool name="[elevated]">true</bool>
</doc>

A similar query with a nested query 'q=(hurco AND _query_:"{!field f=debtoritem v=0~*}")' returns the same document but without elevation:
...
<doc>
    <str name="id">7HURCO</str>
    <arr name="debtoritem">
      <str>0~*</str>
    </arr>
    <bool name="[elevated]">false</bool>
</doc>

Does a nested query disable elevation?

There is an additional spellcheck component added to the query. This is working as expected.
<arr name="last-components">
	<str>spellcheck</str>
	<str>elevator</str>
</arr>

Thanks,
Holger