}
if (termVectorsToFetch!=null && termVectorsToFetch.size()>0){
Map<String,TermFrequencyVector> tvMap = new HashMap<String,TermFrequencyVector>();
hit.setTermFreqMap(tvMap);
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[]>();