When adding documents from a directory I get things working using a few small documents and
Add(docPath).execute(CONTEXT)
but when I want to add hundreds of documents (average size 1Mb) I get a memory error. I am using Jython and have -J-Xms1200M and -J-Xmx1200m
should I use an iterator and only add one document at a time? [this doesn't seem to me to be the way to use Add() ]
TIA
Peter