Hi,
The problem comes when wildchar's are placed at begining of query.
This returns queryparser error.
These wildchars are allowed anywhere in the query but not at begining.
Following segment shows the error thrown when query "*hi" is searched.

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

http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-4d62118417eaef0dcb87f4370583f809848ea695

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 in PyLucene ?
--
Regards,
Pravin Shinde
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to