On Wed, Jun 3, 2015 at 4:59 PM, Anton Zenkov wrote:
> Reindexing. If I want to add new fields or change existing fields in the
> index I need to go through all documents of the index.
>
if your reindexing process needs all the docs, i dont think i can
really recommend a better way. a merge reader
Reindexing. If I want to add new fields or change existing fields in the
index I need to go through all documents of the index.
On Wed, Jun 3, 2015 at 4:46 PM, Robert Muir wrote:
> On Wed, Jun 3, 2015 at 4:00 PM, Anton Zenkov
> wrote:
>
> >
> > for (int i = 0; i < leafReader.maxDoc(); i++) {
>
On Wed, Jun 3, 2015 at 4:00 PM, Anton Zenkov wrote:
>
> for (int i = 0; i < leafReader.maxDoc(); i++) {
> DocumentStoredFieldVisitor visitor = new DocumentStoredFieldVisitor();
> fieldsReader.visitDocument(i, visitor);
> visitor.getDocument();
>
> }
>
> }
>
> I was wondering if there