for (String field : termVectorsToFetch){
TermFreqVector tv = reader.getTermFreqVector(fdoc.doc, field);
if (tv!=null){
int[] freqs = tv.getTermFrequencies();
String[] terms = tv.getTerms();
tvMap.put(field, new TermFrequencyVector(terms, freqs));
}
}
}
Map<String,String[]> map = new HashMap<String,String[]>();
Map<String,Object[]> rawMap = new HashMap<String,Object[]>();