Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-18 Thread Christoph Burgmer
Hi Andy, here's a short example in both Java and Python that do the same. The Python example raises the error as mentioned by Daniel. I've also added a patch to extend the current test cases to include tests for setAllowLeadingWildcard(). -Christoph import org.apache.lucene.search.Query; import

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-17 Thread Andi Vajda
On Tue, 17 Aug 2010, Daniel Rech wrote: I'd like to use the setAllowLeadingWildcard method with PythonMultiFieldQueryParser but I always get a lucene.JavaError: org.apache.lucene.queryParser.ParseException: Cannot parse '*a': '*' or '?' not allowed as first character in WildcardQuery It works