Just to clarify this question a little, if I search for the term "specificato" 
and designate highlighting (hl=true) then my highlighting comes back fine.

If I search for "something else", designate highlighting and attach a different 
query to it (hl.q="specificato") then I do not always get good highlighting 
results back (highlighting fields are sometimes empty).

-----Original Message-----
From: Van Tassell, Kristian [mailto:kristian.vantass...@siemens.com] 
Sent: Friday, March 29, 2013 7:43 AM
To: solr-user@lucene.apache.org
Subject: Highlighting result problems

My highlighting works the bulk of the time, but there are occurrences where I 
find it is not returning highlighting hits when it should.
My requirements for the query is to use a "q" and a "hl.q" parameter. When I 
just use the "q" parameter, the highlighting comes back every time correctly.
10% of the time, or so, when I use both parameters, I get no highlighting back.
Here are some examples:
select?q=l'assieme&wt=xml&defType=edismax&qf=text_it_IT&hl=true
Highlighting, this is perfect, but we need to be able to provide the hl.fl field

select?q=l'assieme&wt=xml&defType=edismax&qf=text_it_IT&hl=true&hl.q=l'assieme&hl.fl=text_it_IT
No highlighting

select?q=l'assieme&wt=xml&defType=edismax&qf=text_it_IT&hl=true&hl.q=assieme&hl.fl=text_it_IT
Highlighting, but, by request, without the l'

select?q=it_IT-foobar-2150&qf=id&wt=xml&defType=edismax&qf=text_it_IT&hl=true&hl.q=l'assieme&hl.fl=text_it_IT
No highlighting, this is more accurate to a standard query we'll be doing 
(querying different values)

Wondering whether the bug was related to the apostrophe in l'assieme, I tried 
some other words I was seeing trouble with and see the same problems:
select?q=specificato&wt=xml&defType=edismax&qf=text_it_IT&hl=true
Perfect
select?q=specificato&wt=xml&defType=edismax&qf=text_it_IT&hl=true&hl.q=specificato&hl.fl=text_it_IT
No highlighting


Reply via email to