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? 
 

Reply via email to