Re: Deleting index for DB indexing

2004-12-31 Thread mohamed ebrahim faisal
{ objDocument = objHits.doc(nStart); System.out.println(" address "+objDocument.get("address")); } objIndexSearcher.close(); objIndexSearcher = null; } publi

Re: Deleting index for DB indexing

2004-12-30 Thread mahaveer jain
Thanks Paul, You idea seems to be good. I ll try that. I have one more question. Should the new key what I create have to be keyword ? or Can it be just a column in the index ? Mahaveer Paul <[EMAIL PROTECTED]> wrote: On Thu, 30 Dec 2004 08:36:04 -0800 (PST), mahaveer jain wrote: > I am inde

Re: Deleting index for DB indexing

2004-12-30 Thread Paul
On Thu, 30 Dec 2004 08:36:04 -0800 (PST), mahaveer jain <[EMAIL PROTECTED]> wrote: > I am indexing more that 5 tables. And each for them have autoincrement and > that is the primary key. So if I do find DocNum, it may so happen that it > may delete document I don't want to delete. you need to cre

Re: Deleting index for DB indexing

2004-12-30 Thread Morus Walter
mahaveer jain writes: > I am using lucene for my DB indexing. I have 2 columns which are Keyword. > Now I want to delete my index based on this 2 keyword. > > Is it possible ? If no. What is other alternative ? > You can delete documents based on document number from an index reader. You can

Re: Deleting index for DB indexing

2004-12-30 Thread mahaveer jain
I am indexing more that 5 tables. And each for them have autoincrement and that is the primary key. So if I do find DocNum, it may so happen that it may delete document I don't want to delete. Paul <[EMAIL PROTECTED]> wrote: Alternative: create a hashed value which is unique within your DB (e.g

Re: Deleting index for DB indexing

2004-12-30 Thread Paul
Alternative: create a hashed value which is unique within your DB (e.g. use md5). Afterwards you can delete documents from the index with the IndexReader(Term). Without that additional field you can use the IndexSearcher to retrieve your documents from the index and then use IndexReader(DocNum) to

Deleting index for DB indexing

2004-12-30 Thread mahaveer jain
Hi All, I am using lucene for my DB indexing. I have 2 columns which are Keyword. Now I want to delete my index based on this 2 keyword. Is it possible ? If no. What is other alternative ? Thanks Mahaveer - Do you Yahoo!? Yahoo! Mail -