Chris,
Thanks for the reply. I'm curious why we want to search one field but
highlight different fields? Doesn't it make more sense to only highlight
the query fields? In my example, if I search f1, f2, f3, most likely I
only want to the searching words in those fields to be highlighted. Of
course I can use hl.fl, but I think it make more sense for solr to
automatically highlight those fields(rather than the default search
field) for us. 

Thanks
Xuesong


-----Original Message-----
From: Chris Hostetter [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 04, 2007 11:33 AM
To: solr-user@lucene.apache.org
Subject: RE: question about highlight field

:
: 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


Reply via email to