1) Are you sure that the index is corrupted? Maybe the file handles just
haven't been released yet. Did you try to reboot and try again?
2) To avoid the too-many files problem: a) increase the system file handle
limits, b) make sure that you reuse IndexReaders as much as you can rather
across
Hi
I added one document in to the index using the code
doc=new Document();
IndexWriter indwr=new IndexWriter(rdir,new
StandardAnalyzer(),true)
doc.add(Field.Text(name, Suhas Kumar));
indwr.close()
and searched using the code
indSe = new IndexSearcher(rdir);
Query
Pradeep,
I believe that using 'Suhas*' tells the search engine you're looking for a
term which starts with 'Suhas' and has 1 or more terms in addition. Using
'Suhas' looks for a direct term match.
The '+' preceding the term tells the engine its mandatory that this term be
included. The '-'
I am working my way through the examples in the Getting Started
documentation, and I have run into a problem with the Web demo program.
When I run the following command
java org.apache.lucene.demo.IndexHTML -create -index {index} ..
I receive the following messages:
adding
I rebooted my machine and still the same issue .. if I know
what caused that to happen, I would be able to solve it with
some source tweaking, and it's not the files handles on the machine I
got over that problem months ago. Let's consider worst case scenario and
that
corruption did occur what
sorry .. but still the same problem, I've saved the index in a seperate
direcory
and I've re-indexed overnight so, testing (witch is currently underway) on
the
system can resume. Like I said in my previous email , worst case scenarios
and the index
is corrupted any ideas as to why, I'll gladly go
I was going through the lucene-user posts on the web and I came accross
a posting by Scott Oshima
http://www.mail-archive.com/lucene-user@jakarta.apache.org/msg00693.html
witch is talking about creating a IndexReader pool to spead up the search
I've looked into that but I can't fiure out what