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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to