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
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
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
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 =
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
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
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