lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Range query and Highlighting
Date Fri, 18 Jul 2014 21:23:06 GMT
You can specify an "alternate" query to use for highlighting purposes, with 
the "hl.q" parameter. It doesn't affect the query results, but lets you 
control which terms get highlighted.


-- Jack Krupansky

-----Original Message----- 
From: Jae Joo
Sent: Friday, July 18, 2014 5:15 PM
Subject: Range query and Highlighting

If I use a combined query - range query and others (term query), all terms
in field matched is highlighted. Any way to highlight only the term(s) in
term query?
Here is example.

+date:{20031231 TO *] +(title:red)

It highlight all terms except stopword.

using fq would not be an option because there may be multiple term queries
and boolean queries combined.

Any idea?


View raw message