IndexReader.delete( term ) bug?

2003-09-16 Thread Lars Hammer
Hello I am trying to delete all docs in my index containing a field with a given value. The API says that the delete( term ) method in IndexReader can do that for me. The problem is that it doesn't seem to work properly. When i apply the delete( term ) method to docs where i know that only one

Re: IndexReader.delete( term ) bug?

2003-09-16 Thread Otis Gospodnetic
Lars, The code looks fine. However, you are not showing how you deal with any possible exceptions (IOExceptions, for instance), so it is possible that you are ignoring exceptions. Thata delete(Term) method returns an int, so you could also capture that and see what its value is. I assume that

Re: merging indices

2003-09-16 Thread Otis Gospodnetic
Tom, Not sure which one would be better for you. It would be easy for you to test that, though. My guess would be that a single index will work better. To merge indices, create a new instance of FSDirectory. Directory dir = new FSDirectory(/path/to/new/index); Then create an array of your

Re: IndexReader.delete( term ) bug?

2003-09-16 Thread Lars Hammer
Sorry I should have posted som more code the first time around, here is the whole method that i Use. I make a search for the term first to check if any documents exists : private void deleteModelTree( String modelTreeFileID, pathToIndex ) { try { IndexReader ir =

Large data sets benchmark

2003-09-16 Thread Albert Vila Puig
Hello I'm planing to use Lucene in a big environment, with large data sets (between 50-100Gb of data). I've seen some people have experience in this kind of environments. I was wondering, if someone can provide a benchmarking with this amount of data. Another question, is someone using Lucene

RE: too many files within one index

2003-09-16 Thread Wilton, Reece
The lower the number, the more often a new file is created. Since creating/opening files with Lucene seems to cause issues on Windows, I increased this to 100. This solved my file locking problems and still gave me good performance (I am able to perform over 200 queries/second from a servlet

Browsing the list of searchable terms

2003-09-16 Thread Joe Paulsen
We would like to be able to allow our users to browse the index of searchable terms by entering a term (or term stem) to which we will respond with a list of words surrounding the entered word/stem (say 10 terms before and 10 terms after) along with the number of occurrences of the terms in the