lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cescy" <ee07b...@gmail.com>
Subject About ComplexPhraseQueryParser highlight prob
Date Tue, 15 Mar 2011 21:44:10 GMT
hi


My app can find the document but cannot highlight the keywords.


  ComplexPhraseQueryParser parser = new ComplexPhraseQueryParser(Version.LUCENE_30, "contents",
analyzer);
  Query query = parser.parse("\"(great~) sum*\"");
  QueryScorer scorer = new QueryScorer(query);


Looks like its because the query coming in is a ComplexPhraseQuery and the Highlighter doesn't
current know how to handle that type. 


So how to fix the problem???
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message