lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AdamP <>
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:  


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


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message