Re: How to get the terms matching a WildCardQuery in Lucene 6.2?

2016-10-24 Thread Evert Wagenaar
Thanks Allison. I will try it. Op maandag 24 oktober 2016 heeft Allison, Timothy B. het volgende geschreven: > Make sure to setRewriteMethod on the MultiTermQuery to: > MultiTermQuery.SCORING_BOOLEAN_REWRITE or CONSTANT_SCORE_BOOLEAN_REWRITE > > Then something like this should work: > >

RE: How to get the terms matching a WildCardQuery in Lucene 6.2?

2016-10-24 Thread Allison, Timothy B.
Make sure to setRewriteMethod on the MultiTermQuery to: MultiTermQuery.SCORING_BOOLEAN_REWRITE or CONSTANT_SCORE_BOOLEAN_REWRITE Then something like this should work: q = q.rewrite(reader); Set terms = new HashSet<>(); Weight weight = q.createWeight(searcher, false);

How to get the terms matching a WildCardQuery in Lucene 6.2?

2016-10-24 Thread Evert Wagenaar
I already asked this on StackOverflow. Unfortunately without any answer for over a week now. Therefore again to the real experts: I downloaded a list of 350.000 English words in a .txt file and Indexed it using the latest Lucene (6.2). I want to apply wildcard queries like aard and then retr