problem with index file search
Hi,
I have an luncene indexed directory conatining two .cfs files, one segments GEN file and segments_3 ,segments_7 files.
I have written a java code to search the index files. But when i run the code ,i got the following error :
Exception in thread "main" java.io.FileNotFoundException: D:\LuceneSearchApp\Lucene\public_html\Profiles\seg ments (The system cannot find the file specified)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.j ava:212)
at org.apache.lucene.store.FSIndexInput$Descriptor.<i nit>(FSDirectory.java:425)
at org.apache.lucene.store.FSIndexInput.<init>(FSDire ctory.java:434)
at org.apache.lucene.store.FSDirectory.openInput(FSDi rectory.java:324)
at org.apache.lucene.index.SegmentInfos.read(SegmentI nfos.java:45)
at org.apache.lucene.index.IndexReader$1.doBody(Index Reader.java:148)
at org.apache.lucene.store.Lock$With.run(Lock.java:10 9)
at org.apache.lucene.index.IndexReader.open(IndexRead er.java:143)
at org.apache.lucene.index.IndexReader.open(IndexRead er.java:138)
at lucene.M4MarrySearch.main(M4MarrySearch.java:25)
can anyone plz help me to solve this error.
regards,
rencin.