Now I have the highlighted wildcards but obviously the scoring is lost. I see that a rewrite of the wildcard query produces a constant score query. I added

setMultiTermRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE);

to my QueryParser instance but no effect. What's to be done now?

Wulf



Am 26.01.2011 11:06, schrieb Wulf Berschin:
Thank you Alexander and Uwe, for your help.

I read Marks explanation but it seems to me that his changes are not
contained in Lucene-3.0.3.

So I commented out the rewrite, changed QueryTermScorer back to
QueryScorer and now I got the wildcard queries highlighted again.

Wulf


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to