On Wed, 09 Jun 2010 17:47:47 +0200, Andi Vajda <va...@apache.org> wrote:
On Jun 9, 2010, at 8:36, "Dirk Rothe" <d.ro...@semantics.de> wrote:
I'm trying to play with extractTerms() a method of the Query() class
[1]. This method expects a java Set<Term> instance - but instantiating
one failes with a NotImplementedError. Any clues whats missing:
A Java Set is an interface and as such cannot be instantiated. Instead,
use a Java class such as TreeSet or HashSet that implements this
interface.
PyLucene also ships with PythonSet, a Java implentation of Set backed by
a Python set. See module in PyLucene's python directory.
Aah, yes I see - a HashSet works as expected. Thnx a lot for the obviously
non-pylucene-related help.
--dirk