Do you help me?thanks.
xingjian wrote:
>
> How i can read the index info of Nutch by Lucene's IndexReader.
>
> Code:
> private String INDEX_STORE_PATH =
> "D:\\workspace3.3\\Nutch\\crawled\\index";
> IndexReader reader = IndexReader.open(INDEX_STORE_PATH);
> for(int i=0;i<reader.numDocs();i++){
> System.out.println(reader.document(i));
> }
>
> when execute above code,error occur:java.io.FileNotFoundException:
> D:\workspace3.3\Nutch\crawled\index\segments
>
> My directory "D:\workspace3.3\Nutch\crawled\index\segments" have lists:
> _0.fdt
> _0.fdx
> _0.fnm
> _0.frq
> _0.nrm
> _0.prx
> _0.tii
> _0.tis
> a.txt
> segments.gen
> segments_2
>
--
View this message in context:
http://www.nabble.com/How-i-can-read-the-index-of-Nutch-by-Lucene%27s-IndexReader.-tf4762078.html#a13623037
Sent from the Nutch - User mailing list archive at Nabble.com.