Re: Java translation problem

2009-10-10 Thread tommy c
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

Re: Java translation problem

2009-10-09 Thread Lauri Pesonen
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

Re: Java translation problem

2009-10-09 Thread Laurent PETIT
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

Re: Java translation problem

2009-10-09 Thread Laurent PETIT
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);

Java translation problem

2009-10-09 Thread 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 doing: (import '(org.apache.lucene.index IndexWriter)) (def index-writer (new IndexWriter dir (new SimpleAn