lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AdamP <adamph...@gmail.com>
Subject Highlighting using hl.q without a df field
Date Wed, 19 Jun 2013 14:23:24 GMT
Is it possible to use the hl.q field if you’re using the extended dismax
query parser and have defined the “qf” field, but not a “df” field?  

Here’s a sample query:  

q=drive&fq=cat:electronics&hl=true&hl.fl=cat,name&hl.q=drive
cat:electronics.  

In this case I want to highlight the facet “electronics” and the word
“drive” within the cat and name fields.  Assuming I’m understanding the wiki
correctly, snippets should be generated for the hl.fl fields.  What I’m
getting is an error message saying “no field name specified in query and no
default specified via 'df' param".  If I remove the word “drive” from the
hl.q field, it works correctly, which makes sense since given the error.  I
just don’t understand why it’s not using the “qf” or “fl.hl” fields to query
against.

Thanks 




--
View this message in context: http://lucene.472066.n3.nabble.com/Highlighting-using-hl-q-without-a-df-field-tp4071648.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message