(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: [email protected] For additional commands, e-mail: [email protected]
