Re: What is the fastest way to loop over all documents in an index?

2017-09-04 Thread Ishan Chattopadhyaya
Maybe IndexReader#document(), looping over docids is the best here? http://lucene.apache.org/core/6_6_0/core/org/apache/lucene/index/IndexReader.html#document-int- On Tue, Sep 5, 2017 at 7:57 AM, Ahmet Arslan wrote: > Hi Jean, > > I am also interested answers to this question. I need this featur

Re: What is the fastest way to loop over all documents in an index?

2017-09-04 Thread Ahmet Arslan
Hi Jean, I am also interested answers to this question. I need this feature too. Currently I am using a hack. I create an artificial field (with an artificial token) attached to every document.  I traverse all documents using the code snippet given in my previous related question. (no one answ

What is the fastest way to loop over all documents in an index?

2017-09-04 Thread Jean Claude van Johnson
Hi there, I have an use case, were I need to iterate over all documents in an index from time to time. It seems that the MatchAllDocsQuery is what I should use for this, however it creates a bunch of Objects (Score etc) that I don’t really need. My question to you is: What is the fastest way

Lucene Index Size growing

2017-09-04 Thread Diego de Sena Guimarães
Hi guys, i'm having problems with my lucene index. Once a day we do a full reindex. This full index is coded like this.. delete all docs optimize index reindex all docs optimize again commit mayberefresh on searcher manager *The problem is that everytime we do this, the index size is not return