Document doc = new Document();
Set<Entry<String,IndexSpec>> entries = _interpreter._textIndexingSpecMap.entrySet();
for (Entry<String,IndexSpec> entry : entries){
try{
String name = entry.getKey();
IndexSpec idxSpec = entry.getValue();
String val = String.valueOf(idxSpec.fld.get(_obj));
doc.add(new org.apache.lucene.document.Field(name,val,idxSpec.store,idxSpec.index,idxSpec.tv));
}
catch(Exception e){
logger.error(e.getMessage(),e);