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

2016-10-25 Thread Evert Wagenaar
Thanks again Timothy. I'll need to refactor your code to make it work with my wordlist App but that won't be the biggest problem. I will mention your name when it's online and off course in my blog too. You made it possible. Thanks. Op dinsdag 25 oktober 2016 heeft Allison, Timothy B. het volgen

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

2016-10-25 Thread Evert Wagenaar
It works! Thanks a lot Timothy! Evert Wagenaar On Tue, Oct 25, 2016 at 9:30 PM, Allison, Timothy B. wrote: > A WildcardTerm subclasses a MultitermQuery. If you are using the > QueryParser, you need to set the rewrite method on the parser. > > Try this…and beware of hitting the max BooleanQuer

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

2016-10-25 Thread Evert Wagenaar
Thanks Allison. I will try it. Let you know if it works. Evert Wagenaar Op dinsdag 25 oktober 2016 heeft Allison, Timothy B. het volgende geschreven: > A WildcardTerm subclasses a MultitermQuery. If you are using the > QueryParser, you need to set the rewrite method on the parser. > > Try thi

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

2016-10-25 Thread Allison, Timothy B.
A WildcardTerm subclasses a MultitermQuery. If you are using the QueryParser, you need to set the rewrite method on the parser. Try this…and beware of hitting the max BooleanQuery clause limit…and/or reset that BooleanQuery.setMaxClauseCount(numberBigEnoughForYourNeeds); import java.util.

indexing analyzed and not_analyzed values in same field

2016-10-25 Thread Kumaran Ramasubramanian
Hi All, i have indexed 4 documents in an index where BANKNAME field is analyzed in two documents and it is not_analyzed in another two documents. i have mentioned search cases below where i am able to search using both analyzed ( using classic analyzer ) and not_analyzed ( using keyword analyzer )

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

2016-10-25 Thread Evert Wagenaar
Again, the Code I try to use to extract the matching term for the query "aard" This matches one term in my 350.000 words list. Which I Indexed using the *StandardAnalyzer*. As already mentioned this matches "aardvark". What can I do to make this work? Thanks, Evert Wagenaar http://www.eve

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

2016-10-25 Thread Evert Wagenaar
Hi Allison, Unfortunately I can't compile the code (see below). Can you tell me what's wrong? I tried both MultiTermQuery.SCORING_BOOLEAN_REWRITE and CONSTANT_SCORE_BOOLEAN_REWRITE What I don't understand actually is the relation between my Query (which is a wildcard Query and not a MultiTermQuer