lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Michael Engelke <thomas.enge...@posteo.de>
Subject Solr: Elevate with complex query specifying field names
Date Sun, 31 May 2015 13:10:55 GMT
 

I have Solr as the backend to an ECommerce solution where the fields can
be configured to be searchable, which generates a schema.xml and loads
it into Solr. 

Now we also allow to configure Solr search weight per field to affect
queries, so my queries usually look something like this: 

spellcheck=true&fl=entity_id,score&hl.snippets=1&start=0&q=ean:test+name:test^10.00+persartnr:test^5.00+persartnr_direct:test+short_description:test&spellcheck.q=test&spellcheck.build=true=true&hl.simple.pre=<span+class%3D"highlight">&hl.simple.post=</span>&json.nl=map&hl.fl=name,short_description&wt=json&spellcheck.collate=true&hl=true&rows=1000

Now, I want to add query elevation to my mix. I got it to work pretty
flawlessly, however, I'm not sure how to get it to work with my queries
as they specifically state field names and especially boosts on a
regular basis. 

This works and gets elevated when queried as q=test: 

<elevate>
 <query text="test">
 <doc id="14153" />
 </query>
</elevate>

However, when queried as q=name:test^10.00, this elevation does not
work/doesn't elevate. 

Is there a way around that? Can I specify the naked query somehow for
the elevation component? 
 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message