Before query.Rewrite
if query is MultiTermQuery then ((MultiTermQuery)query).setRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUER Y_REWRITE); solved my problem. DIGY -----Original Message----- From: halbtuerderschwarze [mailto:halbtuerderschwa...@web.de] Sent: Wednesday, February 24, 2010 11:46 AM To: java-user@lucene.apache.org Subject: Re: FastVectorHighlighter truncated queries query.rewrite() didn't help, for queries like ipod* or *ipod I still didn't get fragments. Arne chrislusf wrote: > > This should be a common wildcard query highlighting problem. > You will need to query.rewrite() first, and pass the result to the > highlighter. > > -- > Chris Lu > ------------------------- > Instant Scalable Full-Text Search On Any Database/Application > site: http://www.dbsight.net > demo: http://search.dbsight.com > Lucene Database Search in 3 minutes: > http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_m inutes > DBSight customer, a shopping comparison site, (anonymous per request) got > 2.6 Million Euro funding! > > > halbtuerderschwarze wrote: >> Hi, >> >> I just changed from Lucene 2.4.1 to Lucene 3.0.0 to use the >> FastVectorHighlighter, because I've large documents to search and hope >> for >> better highlighting performance. >> If I call the getBestFragments method I didn't get fragments for >> truncated >> queries (f.e. Ipod*), simple none truncated queries are still working >> fine. >> >> Thanks in advance, >> Arne >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > -- View this message in context: http://old.nabble.com/FastVectorHighlighter-truncated-queries-tp27709797p277 14123.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org