Looks like its because the query coming in is a ComplexPhraseQuery and the Highlighter doesn't current know how to handle that type.
It would need to be rewritten first barring the special handling it needs - but unfortunately, that will break multi-term query highlighting unless you use boolean rewrite mode with them. AHMET ARSLAN wrote: > I think there is a problem about attachment. I am re-sending it. > > >> Thank you for your interest, Mark. >> >> I am sending a java code (using lucene 2.9.0) that simply >> demonstrates the problem. When the same query string is >> parsed by Lucene's default QueryParser highlighting comes. >> >> I am trying to highlight full original text, preserving >> proximity criteria. >> Choice of FastVectorHighlighter or Highlighter is not >> important for me. >> >> I was using ComplexPhraseQueryParser with solr 1.3.0, >> without problems with PhraseHighlighter. But now with lucene >> 2.9 + solr 1.4 snippets disappeared suddenly. >> >> Thank you for your help. >> >> Ahmet >> > > > -- - Mark http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org