Hi, looking at the trunk code and running the example of creating vectors from text, I get a NPE in class LuceneIterable on line 111. It seems as if the setExpectations(...) inside the TFDFMapper is never called, which seems to be the only method that instantiates a SparseVector.
Changing the constructor to accept a String (i.e. the fieldname) (-> this.vector = new SparseVector(termInfo.totalTerms(field));) solved the problem... Now I haven't seen that error bouncing around so I'm wondering if there is some magic going on elsewhere and specifically why this setExpectations() is never being called - but maybe this is just a bug indeed... If this is in fact a bug, I'd be more than happy to post a patch. Thanks, Florian
