lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: how to match a term within digital strings?
Date Mon, 09 Nov 2009 06:12:30 GMT
> Hi all,
> I want to query part of a digital string:
> say indexed token is "123456789"
> I want to query 56789 to match this token
> The "Query Parser Syntax" says wildcard search can not
> be the first char.  So "*56789" is not allowed
> How can I do that ?
> Thanks.

With org.apache.lucene.queryParser.QueryParser's

 void setAllowLeadingWildcard(boolean allowLeadingWildcard) 
          Set to true to allow leading wildcard characters. 


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message