Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-21 Thread Daniel Rech
Problem solved as described in http://mail-archives.apache.org/mod_mbox/lucene-pylucene-dev/201008.mbox/%3cd7da5782-0280-44e3-a783-8ff631287...@gmail.com%3e Thanks for all your help! Daniel

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-20 Thread Christoph Burgmer
Hi, thanks for pointing out the issue here. The misunderstanding with the static method actually started with the code used in test PythonMultiFieldQueryParserTestCase (test/test_PythonQueryParser.py) which calls the static method on an instance. The provided workaround should solve our issue h

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-19 Thread Andi Vajda
On Thu, 19 Aug 2010, Aric Coady wrote: On Aug 18, 2010, at 10:13 PM, Andi Vajda wrote: On Wed, 18 Aug 2010, Aric Coady wrote: #query = queryParser.parse(queryString) query = queryParser.parse(Version.LUCENE_CURRENT, queryString, fields, [BooleanClause.Occur.SHOULD, Bo

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-19 Thread Aric Coady
On Aug 18, 2010, at 10:13 PM, Andi Vajda wrote: > On Wed, 18 Aug 2010, Aric Coady wrote: >> #query = queryParser.parse(queryString) >> query = queryParser.parse(Version.LUCENE_CURRENT, queryString, fields, >> [BooleanClause.Occur.SHOULD, >> BooleanClause.Occur.SHOULD], >>

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-18 Thread Andi Vajda
On Wed, 18 Aug 2010, Aric Coady wrote: Your python example differs from the java example. The java one uses the call that's commented out: #query = queryParser.parse(queryString) query = queryParser.parse(Version.LUCENE_CURRENT, queryString, fields, [BooleanClause.Oc

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-18 Thread Aric Coady
Your python example differs from the java example. The java one uses the call that's commented out: #query = queryParser.parse(queryString) query = queryParser.parse(Version.LUCENE_CURRENT, queryString, fields, [BooleanClause.Occur.SHOULD, BooleanClause.Occur.SHOULD],

setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-17 Thread Daniel Rech
Hello, 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 fine with PythonQueryParser but no