You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ahson Iqbal <mi...@yahoo.com> on 2011/02/17 18:48:39 UTC

Question About Highlighting

Hi All

I had a requirement to implement phrase proximity like ["a b c" w/5 "d e f"] for 
this i have implemented a custom query parser plug in which I make use of nested 
span queries to fulfill this requirement. Now it looks that documents are 
filtered correctly, but there is an issue in highlighting that also highlights 
the terms that are alone(not in phrase), can some body suggest me a fix to this 
issue 

Thanks
Ahsan Iqbal 



      

Re: Question About Highlighting

Posted by Ahsan |qbal <ah...@gmail.com>.
Hi All

I even tried that (Appending &hl.usePhraseHighlighter=true) but it still
does not work.

Please help
Regards
Ahsan Iqbal

On Fri, Feb 18, 2011 at 12:30 AM, Ahmet Arslan <io...@yahoo.com> wrote:

> > I had a requirement to implement phrase proximity like ["a
> > b c" w/5 "d e f"] for
> > this i have implemented a custom query parser plug in which
> > I make use of nested
> > span queries to fulfill this requirement. Now it looks that
> > documents are
> > filtered correctly, but there is an issue in highlighting
> > that also highlights
> > the terms that are alone(not in phrase), can some body
> > suggest me a fix to this
> > issue
> >
>
> Appending &hl.usePhraseHighlighter=true should work.
>
>
>
>

Re: Question About Highlighting

Posted by Ahmet Arslan <io...@yahoo.com>.
> I had a requirement to implement phrase proximity like ["a
> b c" w/5 "d e f"] for 
> this i have implemented a custom query parser plug in which
> I make use of nested 
> span queries to fulfill this requirement. Now it looks that
> documents are 
> filtered correctly, but there is an issue in highlighting
> that also highlights 
> the terms that are alone(not in phrase), can some body
> suggest me a fix to this 
> issue 
> 

Appending &hl.usePhraseHighlighter=true should work.