On 4-Jun-07, at 9:56 AM, Xuesong Luo wrote:
So if I need to search a string in field f1, f2, f3 and highlight them
in the response, I have to append hl.fl=f1,f2,f3 to my query. Is this
the only solution? I thought of using searchall field, but the
problem
is the highlight element doesn't tell which value belongs to which
field, as you can see in the example above, I can't tell the Senior
Event Manager is from TITLE or other fields.
As Chris mentioned, I'm not sure how Solr could "know" that you want
to highlight those fields, given that you aren't even searching them.
One option is to search those fields directly, using dismax. In that
case, the highlight fields will be picked up automatically.
-Mike