Thursday, April 14, 2005 01:15 PM
I actually found the answer in the Lucene book. It is in chapter 8.7
The Query.rewrite(IndexReader) method has to be called before passing the Query to the Scorer. This rewrites the queries with wildcards to BooleanQuery of all the matching terms.
Then, everything works fine ...