Re: Lucene Wildcard for zero or one character

2014-03-25 Thread Jack Krupansky
/houses?/ -- Jack Krupansky -Original Message- From: Uwe Schindler Sent: Tuesday, March 25, 2014 11:34 AM To: java-user@lucene.apache.org Subject: RE: Lucene Wildcard for zero or one character The default WildcardQuery only supports: '*' (star) is the wildcard in Wildcar

RE: Lucene Wildcard for zero or one character

2014-03-25 Thread Uwe Schindler
The default WildcardQuery only supports: '*' (star) is the wildcard in WildcardQuery for zero or more chars. '?' is exactly one char Zero or exatly one char can only be done with a RegexpQuery: https://lucene.apache.org/core/4_7_0/core/org/apache/lucene/search/RegexpQuery.html Here is the synta