On 26.06.2010, at 16:22, Koji Sekiguchi wrote:

> (10/06/26 22:19), Lukas Kahwe Smith wrote:
>> Hi,
>> 
>> Form googling and looking at jira tickets it seems like phrase highlighting 
>> should work out of the box, but even enabling it manually didnt get me the 
>> desired result:
>> http://resolutionfinder.org/search?q=%22security+council%22&=&tm=any&s=Search
>> 
>> generates the following query:
>> 
>> INFO: [Clause_en] webapp=/solr path=/select 
>> params={hl.fragsize=0&facet=true&sort=score+desc&hl.simple.pre=<strong>&hl.fl=*&json.nl=map&wt=json&hl=true&rows=21&hl.highlightMultiTerm=true&fl=*,score&start=0&q=(_query_:"{!dismax+qf%3D'content+document_title'+pf%3D'content+document_title'+v%3D$qq}")&hl.simple.post=</strong>&facet.field={!ex%3Ddt+key%3Dorig_legal_value}legal_value&facet.field={!ex%3Ddt+key%3Dorig_adoption_year}adoption_year&facet.field={!ex%3Ddt+key%3Dorig_organisation_id}organisation_id&facet.field={!ex%3Ddt+key%3Dorig_addressee_ids}addressee_ids&facet.field={!ex%3Ddt+key%3Dorig_documenttype_id}documenttype_id&facet.field={!ex%3Ddt+key%3Dorig_information_type_id}information_type_id&facet.field={!ex%3Ddt+key%3Dorig_operative_phrase_id}operative_phrase_id&facet.field={!ex%3Ddt+key%3Dorig_tag_ids}tag_ids&hl.usePhraseHighlighter=true&qq="security+council"}
>>  hits=0 status=0 QTime=31
>> 
>> but as you can see in the above website "security" and "council" are still 
>> highlighted separately.
>> 
>> regards,
>> Lukas Kahwe Smith
>> m...@pooteeweet.org
>> 
>>   
> Lukas,
> 
> What do you mean by ""security" and "council" are still highlighted 
> separately"?
> If you expect that you get "<strong>security council</strong>", highlighter
> cannot do it. Highlighter tags per term for emphasizing terms and phrases
> even if you set hl.usePhraseHighlighter to true.


ah ok .. then i will just replace </strong><strong> in my custom code.

regards,
Lukas Kahwe Smith
m...@pooteeweet.org



Reply via email to