lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramya <>
Subject Re: indexdir/segments (No such file or directory) lock file present..
Date Fri, 13 May 2005 05:03:51 GMT
I have chenged my logic as suggested..
boolean create = !(new File("indexdir/segments").exists());
System.out.println("Number of objects writing to index=" + count);
index = new IndexWriter(d, new StandardAnalyzer(), create);

But still one problem persists..When i do a huge number of documents, 
the files except the segment files get removed..
and the segment file is just 8K

1. How does the locking work.. When another process/thread is writing 
the index, will the current process block or exit with an exception. 
This information is crucial because there might be number of users 
updating the same index.
2. Wat would happen when a document has variable number of fields each 
time i update the index
First doc

Heading                    Part1
Heading                    Part1               Part2
Heading                    Part1               Part2             Part3

Could this be the reason why i loose my index data when i try to update 

Thanks and regards
Ramya Krishnan

********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to 
Sify Limited and is intended for use only by the individual or entity to 
which it is addressed, and may contain information that is privileged, 
confidential or exempt from disclosure under applicable law. If this is a 
forwarded message, the content of this E-MAIL may not have been sent with 
the authority of the Company. If you are not the intended recipient, an 
agent of the intended recipient or a  person responsible for delivering the 
information to the named recipient,  you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this 
information in any way or in any manner is strictly prohibited. If you have 
received this communication in error, please delete this mail & notify us 
immediately at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message