lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bratislav Stojanovic <bratislav1...@gmail.com>
Subject Support for wildcard queries in elevate.xml
Date Wed, 19 Mar 2014 10:00:59 GMT
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.

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