fieldNames[index] = fieldsContextIterator.next().getField();
}
//TODO should we keep the fieldToAnalyzerMap around to pass to the analyzer?
Map<String,String> fieldToAnalyzerMap = new HashMap<String, String>( );
//FIXME by calling documentBuilder we don't honor .comparingField("foo").ignoreFieldBridge(): probably not a problem in practice though
maybeDocument = documentBuilder.getDocument( (T) input, null, fieldToAnalyzerMap, null, new ContextualExceptionBridgeHelper(), fieldNames );
vectors = null;
}
else {
vectors = indexReader.getTermVectors( documentNumber );
}