The only thing is that in PyLucene you can't use:
qp.parse(query_string),
but instead you must use:
q=qp.parseQuery(query_string)
Indeed. That is because SWIG doesn't support static and non-static methods
with the same name on the same class, the non-static 'parse' method defined on
org.apache.lucene.queryParser.QueryParser was renamed to 'parseQuery'.
There are a number of such methods which were renamed for similar reasons.
All such API differences are documented in PyLucene's README file
(http://svn.osafoundation.org/pylucene/trunk/README). parseQuery() is
mentioned around line 584.
Andi..
Thursday, November 17, 2005, 6:23:54 PM, Andi Vajda wrote:
As you do in Java:
qp = QueryParser('foo', StandardAnalyzer())
qp.setOperator(QueryParser.DEFAULT_OPERATOR_AND)
Andi..
On Thu, 17 Nov 2005, Catalin Constantin wrote:
Hi there,
How do i set the default operator to QueryParser to be AND in
PyLucene?
Thank you !
--
Catalin Constantin
Bounce Software
http://www.bounce-software.com
http://www.cabanova.ro
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
--
Catalin Constantin
Bounce Software
http://www.bounce-software.com
http://www.cabanova.ro
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev