How to view deleted documents and undelete(int docID)

2007-06-11 Thread Martin Kobele
Hi, I am wondering whether this is possible at all Regarding SegmentReader.document(n,..), an exception is thrown if (isDeleted(n) == true). So I cannot get a hold of document n if it is deleted. Despite that, is there a way to view the deleted document and undelete a single document? (Luk

Re: Obtain Lock file timeout during deleteDocument()

2007-05-30 Thread Martin Kobele
On Wednesday 30 May 2007 11:53:09 Martin Kobele wrote: > On Wednesday 30 May 2007 11:49:41 Michael McCandless wrote: > > You are only using a single instance of IndexReader, right? If for > > example you try to make a new instance of IndexReader and then call > > deleteDoc

Re: Obtain Lock file timeout during deleteDocument()

2007-05-30 Thread Martin Kobele
On Wednesday 30 May 2007 11:49:41 Michael McCandless wrote: > "Martin Kobele" <[EMAIL PROTECTED]> wrote: > > I was trying to find an answer to this. > > I call IndexReader.deleteDocument() for the _first_ time. > > If my index has several segments, my Inde

Obtain Lock file timeout during deleteDocument()

2007-05-30 Thread Martin Kobele
Hi, I am a little confused, probably, because I missed some detail when looking through the code of lucene 2.1. Scenario: Deleting documents works for a while, eventually, I get the exception that obtaining the lock files has timed out. I was trying to find an answer to this. I call IndexRead

Re: phrases containing escaped quotes

2007-05-15 Thread Martin Kobele
thank you! I was indeed using lucene 2.0 and it works very nicely with 2.1 thanks! Martin On Tuesday 15 May 2007 09:59:42 Michael Busch wrote: > Martin Kobele wrote: > > Hi, > > > > I tried to parse the following phrase: "foo \"bar\"

phrases containing escaped quotes

2007-05-15 Thread Martin Kobele
Hi, I tried to parse the following phrase: "foo \"bar\"" I get the following exception: org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column 18. Encountered: after : "\") " Am I mistaken that "foo \"bar\"" is a valid phrase? Thanks! Martin pgp6qEn6ntvUi.pgp Descript

How to warm up

2006-08-26 Thread Martin Kobele
Hi, I have read it several times that sometimes it is practical to warm up a searcher. What exactly does that mean? Would I simply perform a search for "foo bar" or something like that? What happens inside the searcher so that it becomes 'warmed up'? Thank you! Regards, Martin --

Re: many many boolean queries

2006-06-30 Thread Martin Kobele
thank you! Martin On Friday 30 June 2006 14:21, Erick Erickson wrote: > The tradeoff is that it'll blow up eventually . I have a really hard > time trusting increasing the clause count, since eventually, more > data/terms/something will blow my limit again. > > You probably want to think serious

many many boolean queries

2006-06-30 Thread Martin Kobele
Hi, since I use many wildcards, I get the exception, that the number of boolean queries exceeds the default value (1024). I could simply increase the value to like 10,000 or something What would be the trade-off of using a high max value? Thanks! Martin

Re: Some documents are not added to the index

2006-05-17 Thread Martin Kobele
On Wednesday 17 May 2006 09:55, karl wettin wrote: > I can only guess out of the blue. Do you clear the index now and then > when creating a new IndexWriter? You say there is only one instance of > that so that would not be it then. how do I clear the index? I create an IndexWriter with the create

Re: Some documents are not added to the index

2006-05-17 Thread Martin Kobele
On Wednesday 17 May 2006 12:03, Yonik Seeley wrote: > On 5/17/06, Martin Kobele <[EMAIL PROTECTED]> wrote: > > several threads add document to the same index. > > As noted in the FAQ, adding documents is thread safe. > > (I even synchronize my static index writer wh

Re: Some documents are not added to the index

2006-05-17 Thread Martin Kobele
On Wednesday 17 May 2006 09:09, karl wettin wrote: > On Wed, 2006-05-17 at 09:02 -0400, Martin Kobele wrote: > > How can I check whether a document was actually added? > > Is there another way to monitor whether the doc was added? > > Luke is your friend when it comes

Some documents are not added to the index

2006-05-17 Thread Martin Kobele
Hi, several threads add document to the same index. As noted in the FAQ, adding documents is thread safe. (I even synchronize my static index writer when I add documents. just to make sure.) However, after addind all my documents, the index does not contain all of the documents. When I run it a

Re: is writing in an index thread safe?

2006-05-05 Thread Martin Kobele
ouch, I missed it there. I always thought that the FAQ is really good! thank you! sorry for the noise. Martin On Friday 05 May 2006 16:04, Otis Gospodnetic wrote: > Yes, and I believe it's in the FAQ. > > Otis > > - Original Message > From: Martin Kobele <[EM

is writing in an index thread safe?

2006-05-05 Thread Martin Kobele
Hi, is writing into an index with several threads safe? I have a static IndexWriter and all the threads use that one to do an addDocument(Document). Thanks! Martin -- Martin Kobele Software Engineer - To unsubscribe, e-mail

Re: using search instead of explain

2006-05-04 Thread Martin Kobele
or > debugging -- it's much slower then just doing a search. > > > > -Hoss > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For addi

Re: using search instead of explain

2006-05-04 Thread Martin Kobele
/06, Martin Kobele <[EMAIL PROTECTED]> wrote: > > thank you very much. Let's hope the developers can get this bug fixed > > soon :) > > While it would be nice to have a 100% accurate explain(), it should > only be used for debugging purposes (and it's normally

Re: using search instead of explain

2006-05-04 Thread Martin Kobele
Guelph, Ontario N1H 3X7 [EMAIL PROTECTED] Tel: 519-826-5222 ext. 224 Fax: 519-826-5228 > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Kobele Software Engineer ---

using search instead of explain

2006-05-03 Thread Martin Kobele
non-zero. Is there any relation between the value of the explanation and the score? Thanks! Regards, Martin Kobele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]