You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Marc Sturlese <ma...@gmail.com> on 2010/01/29 16:55:17 UTC

FastVectorHighlighter and query with multiple fields

I have FastVectorHighlighter working with a query like:
title:Ipod OR title:IPad

but it's not working when (0 snippets are returned):
title:Ipod OR content:IPad

Could this be because when FieldQuery is created the query to build it must
have just one field?
If it's not the case I may be missing something... any idea?

Thanks in advance
-- 
View this message in context: http://old.nabble.com/FastVectorHighlighter-and-query-with-multiple-fields-tp27373932p27373932.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: FastVectorHighlighter and query with multiple fields

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
Marc Sturlese wrote:
> I have FastVectorHighlighter working with a query like:
> title:Ipod OR title:IPad
>
> but it's not working when (0 snippets are returned):
> title:Ipod OR content:IPad
>
>   
This is true when you are going to highlight IPad in title field and
set fieldMatch to true at the FVH constructor. If you set fieldMatch
to true, try setting to false.

Koji

-- 
http://www.rondhuit.com/en/


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org