Hi all,
I am desperately trying to get the TermFreqVectors using the IndexReader but
always it gives a null value.
Here is the following snippet of code I am doing.
for(int i = 0; i < reader.numDocs(); ++i){
TermFreqVector dtfv = reader.getTermFreqVector(i,"url");
if(dtfv != null){
out.write("\n Document " + i + " has some content in it");
++termDocCount;
}
}
Is something wrong in the code or is something that I missed during creating the
index. I created the index for an intranet using the following command.
bin/nutch crawl urls -dir crawl.test -depth 3 >& crawl.log
Please help
thanks
Siva