[pylucene-dev] Query.extractTerms - how to call this
Helmut Jarausch
jarausch at igpm.rwth-aachen.de
Fri Dec 14 01:23:17 PST 2007
High,
following a suggestion on the Java-Lucene mailing list,
I tried to call Query.extractTerms
In Java it has the signature
void extractTerms(Set terms)
It puts all results in the Java-set terms
I tried
parser= QueryParser(...)
query = parser.parse('a string')
Set_of_Terms= set()
query.extractTerms(Set_of_Terms)
but this fails. The same is with
Set_of_Terms=[]
query.extractTerms(Set_of_Terms)
So, what Python type should be used?
Many thanks for your help,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
More information about the pylucene-dev
mailing list