: : 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
that's because you are highlighting your "searchall" field ... you can search one field and highlight differnet fields -- but yes, you have to list the fields you want to highlight (Solr can only do some much to "guess" which fields to highlight, and in your case it's not gussing what you want it to) -Hoss