lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pravin Shinde" <>
Subject Leading wildcard query
Date Fri, 28 Jul 2006 09:46:47 GMT
I am trying to use Leading wildcard query, but I am not able to do it.
Any query with leading wildcard is failing with lexical error.

query = parser.parse( "*hi" )
JavaError: org.apache.lucene.queryParser.ParseException:
Lexical error at line 1, column 1.  Encountered: "*" (42), after : ""

I came across some documentation in Lucene FAQ which says

Note: Leading wildcards (e.g. *ook) are not supported by the
QueryParser (although Lucene could handle them -- see the comment in
QueryParser.jj to enable these kind of queries -- search for "OG: to
support prefix queries:").

Is there any way I can do Leading wildchard query ?

Pravin Shinde

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

View raw message