Re: Singleton and Lucene: org.apache.lucene.store.AlreadyClosed

2008-12-15 Thread Zender00
/IndexReader) close itself. In my opinion it is completely legal to do so. Any other suggestions? polx wrote: > > > Le 15-déc.-08 à 13:09, Zender00 a écrit : >> in my opinion it is possible to use a reader and writer >> simultanesously on >> the same index. In my already

Re: Singleton and Lucene: org.apache.lucene.store.AlreadyClosed

2008-12-15 Thread Zender00
delete). > > paul > > > Le 15-déc.-08 à 12:06, Zender00 a écrit : > >> >> I extend my original post: >> How is it possible to use lucene in 2 diffent classes / objects, if >> I dont >> want to use static methods/variables? >> (one objec

Re: Singleton and Lucene: org.apache.lucene.store.AlreadyClosed

2008-12-15 Thread Zender00
I extend my original post: How is it possible to use lucene in 2 diffent classes / objects, if I dont want to use static methods/variables? (one object read/writer, the other is read only) Kind regards, D. Penning Zender00 wrote: > > Hi, > I tried to implement a singleton patte

Singleton and Lucene: org.apache.lucene.store.AlreadyClosed

2008-12-12 Thread Zender00
Hi, I tried to implement a singleton pattern for my already working lucene object. But there is a strange error when I tried to access the instance. When my Singleton GetInstance() method is executed for the first time it creates a new instance of my lucene object. There are some member variables

Save big arrays in lucene document

2008-12-05 Thread Zender00
Hello, I have to store 2 arrays (1 int-Array, 1 String-Array (approx. length per element: 30 chars)) with a count of 100-10.000 elements in a lucene document. At this time, I implode each array (split with an ';') and save the value as a string. This works perfectly for small array-sizes (e.g. l