lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bratislav Stojanovic <>
Subject Support for wildcard queries in elevate.xml
Date Wed, 19 Mar 2014 10:00:59 GMT

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 <>}

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 :

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

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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message