lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: FastVectorHighlighter.getBestFragments returning null
Date Fri, 27 May 2011 13:58:41 GMT
(11/05/27 19:57), Joel Halbert wrote:
> Hi,
>
> I'm using Lucene 3.0.3. I'm extracting snippets using
> FastVectorHighlighter, for some snippets (I think always when searching
> for exact matches, quoted) the fragment is null.
>
> Code looks like:
>
>
> 			query = QueryParser.escape(query);
> 			if (exact) {
> 				query = "\""+query+"\"";
> 			}
>                          BooleanQuery allQ = new BooleanQuery();
> 			Query bodyQ = new QueryParser(Version.LUCENE_30, BODY, analyser).parse(query);

What analyzer do you use? And are you sure bodyQ can be composed of
TermQuery, PhraseQuery, BooleanQuery and DisjunctionMaxQuery?

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


Mime
View raw message