Thank you for your help!
But it doesn't work that way!!
My code is:
IndexReader reader = IndexReader.open(dir);
for (int i=0; i --- Ursprüngliche Nachricht ---
> Von: "Mordo, Aviran (EXP N-NANNATEK)" <[EMAIL PROTECTED]>
> An: java-user@lucene.apache.org
> Betreff
No, just at the end of the delete loop get a new reader instance.
Aviran
http://www.aviransplace.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 10:10 AM
To: java-user@lucene.apache.org
Subject: RE: UpdateIndex
for (int i=0; i
for (int i=0; i --- Ursprüngliche Nachricht ---
> Von: "Mordo, Aviran (EXP N-NANNATEK)" <[EMAIL PROTECTED]>
> An: java-user@lucene.apache.org
> Betreff: RE: UpdateIndex
> Datum: Mon, 29 Aug 2005 09:28:59 -0400
>
> After you delete / add documents, you need to g
Subject: Re: UpdateIndex
Hi,
over again a question about updating!
I update my index by first deletion all the documents from index which are not
anymore in the document directories, then i delete all documents from index
which have changed and at last i add all documents to the index which are not
Hi,
over again a question about updating!
I update my index by first deletion all the documents from index which are
not anymore in the document directories, then i delete all documents from
index which have changed and at last i add all documents to the index which
are not in the index but in the
Would you want to update, or could you just append to
an existing Index?
Thanks, B
--- Ray Tsang <[EMAIL PROTECTED]> wrote:
> This could be off topic, but I made something that
> updates indices
> that worked like the following, wonder if anybody
> has the same ideas?
> I found something like In
On Wednesday 24 August 2005 12:47, [EMAIL PROTECTED] wrote:
> what can i do with files which are deleted from the document directory?
> How can i delete them from the index, if i start an update?
See IndexHTML.java in the Lucene demos.
Regards
Daniel
---
Hi,
what can i do with files which are deleted from the document directory?
How can i delete them from the index, if i start an update?
Currently i start a search in the index for existing documents and delete
them, when they have changed! After that session i add all the documents,
which are not
On Tue, 2005-08-23 at 13:53 +0200, Derya Kasapoglu wrote:
> Thank you for your help!!!
>
> I try it without Analyzer!
>
> document.add(Field.Keyword("path", file[i].getAbsolutePath()));
>
> then
>
> Term term = new Term("path", file[i].getAbsolutePath());
> Query query = new TermQuery(term);
>
> --- Ursprüngliche Nachricht ---
> Von: "Derya Kasapoglu" <[EMAIL PROTECTED]>
> An: java-user@lucene.apache.org
> Betreff: Re: UpdateIndex
> Datum: Tue, 23 Aug 2005 13:33:05 +0200 (MEST)
>
> I meant the reader.hasDeletions() returns null and reader.delete(term
like that:
document.add(Field.Keyword("pathLC",
file[i].getAbsolutePath().toLowerCase()));
so i store it as a Text!!!
so i think i have to use the analyzer bevor i call delete(term) ?
i'm right?
> --- Ursprüngliche Nachricht ---
> Von: Miles Barr <[EMAIL PROTECTED]>
> An: j
On Tue, 2005-08-23 at 12:54 +0200, Derya Kasapoglu wrote:
> Yes, it returns null.
> But this is a little bit funny because the searching is correct
> and it finds the document whitch have changed!
> So want can i do!?
>
> Is there an opportunity to get the document id?
It can't return null since
; An: java-user@lucene.apache.org
> Betreff: Re: UpdateIndex
> Datum: Tue, 23 Aug 2005 11:47:22 +0100
>
> On Tue, 2005-08-23 at 12:38 +0200, Derya Kasapoglu wrote:
> > i query the index for the path of the files in the directory and compare
> the
> > dates.
> > But i hav
On Tue, 2005-08-23 at 12:38 +0200, Derya Kasapoglu wrote:
> i query the index for the path of the files in the directory and compare the
> dates.
> But i have a Problem!
> I find out the files which have changed but i can not delete the documet
> from the index, i don't know why!
>
> In the Field
gt; Von: Ray Tsang <[EMAIL PROTECTED]>
An: java-user@lucene.apache.org
Betreff: Re: UpdateIndex
> Datum: Tue, 23 Aug 2005 09:48:59 +0800
>
> This could be off topic, but I made something that updates indices
> that worked like the following, wonder if anybody has the same idea
This could be off topic, but I made something that updates indices
that worked like the following, wonder if anybody has the same ideas?
I found something like IndexAccessControl in the mailing list before.
An implementation of the following uses IAC.
ManagedIndex index = ManagedIndex.getInstanc
Yes, this is not how you should do it.
Use reader.delete(Term) method to delete documents:
http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#delete(org.apache.lucene.index.Term)
Otis
--- [EMAIL PROTECTED] wrote:
> Hi,
>
> i wrote an Index update, where first the In
ssage-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 22, 2005 10:22 AM
To: java-user@lucene.apache.org
Subject: RE: UpdateIndex
Yeah, that is a good idea,
but i have the following problem of doing the update that way.
I can not query the index for the file name, becau
field but i can not search after the path!
It won't work and i don't know why? Have you an idea?
Derya
> --- Ursprüngliche Nachricht ---
> Von: "Mordo, Aviran (EXP N-NANNATEK)" <[EMAIL PROTECTED]>
> An: java-user@lucene.apache.org
> Betreff: RE: UpdateIndex
&g
In your approach, you are reading all the documents in your index. You should
instead query the index for the file name instead of reading the entire index
for each file.
HTH
Aviran
http://www.aviransplace.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
20 matches
Mail list logo