Thanks guys.
the import was necessary
(import '(org.apache.lucene.index IndexWriter IndexWriter
$MaxFieldLength))
and IndexWriter$MaxFieldLength/UNLIMITED was the correct reference.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
2009/10/9 tommy c :
>
> I'm trying to translate a java lucene indexer to clojure.
> This java line is bothersome:
> writer = new IndexWriter(dir, new SimpleAnalyzer(), true,
> IndexWriter.MaxFieldLength.UNLIMITED);
MaxFieldLength is an inner class in IndexWriter and UNLIMITED is a
static field
Oh, I guess you also have to import IndexWriter$MaxFieldLength (not sure
though, test with both !) :
(import '(org.apache.lucene.index IndexWriter IndexWriter$MaxFieldLength))
2009/10/9 Laurent PETIT
> Hi, quick answer :
>
> try (IndexWriter$MaxFieldLength/UNLIMITED)
>
>
>
> HTH
>
> --
> Lauren
Hi, quick answer :
try (IndexWriter$MaxFieldLength/UNLIMITED)
HTH
--
Laurent
2009/10/9 tommy c
>
> I'm trying to translate a java lucene indexer to clojure.
> This java line is bothersome:
> writer = new IndexWriter(dir, new SimpleAnalyzer(), true,
> IndexWriter.MaxFieldLength.UNLIMITED);
I'm trying to translate a java lucene indexer to clojure.
This java line is bothersome:
writer = new IndexWriter(dir, new SimpleAnalyzer(), true,
IndexWriter.MaxFieldLength.UNLIMITED);
I'm doing:
(import '(org.apache.lucene.index IndexWriter))
(def index-writer (new IndexWriter dir (new SimpleAn