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 Bratislav Stojanovic <br...@gmail.com> on 2014/03/19 11:00:59 UTC

Support for wildcard queries in elevate.xml

Hi,

I have searched the mailing list archives but couldn't find the right
answer so far.

I want to elevate some results using instructions from
QueryElevationComponent page, but
I'm not sure how to set queries in *elevate.xml* file. My query looks like
this :

(content:"foobar" OR text:"foobar") AND last_modified:[<date.from> TO <
date.to>}

The trick is that *last_modified *param can be pretty much anything as it
is set from the search
page to filter results. How to set this in the text attribute in *<query>*?

My attempt was this, but it doesn't work :

*<elevate>*
* <query text="(content:&quot;foobar&quot; OR text:&quot;foobar&quot;) AND
last_modified:[* TO *}">*
* <doc id="605"/>*
* </query>*
*</elevate>*

Does this file support wildcard queries? Is there any solution how to
achieve this, or do I have to manipulate result
xml from solr to change result order?

P.S. I'm using Solr 4.6 on Windows 7 x64 and Java 1.7.0_51 x64. My
elevate.xml file is in the collection1\data folder.

Thank you all in advance.

-- 
Bratislav Stojanovic, M.Sc.