Re: How to get a list of field names of one doc?

2005-09-10 Thread Erik Hatcher
Riccardo, I'm not quite understanding the issue with using Document.fields(). It returns an Enumeration of Field objects, which contain the name and the value. If you only want the name, then only use the name and ignore the value. That seems simple enough, so I must be missing what yo

Re: How do I avoid reindexing?

2005-09-10 Thread jian chen
delete document with this id and then add document with the same id. Jian On 9/10/05, Filip Anselm <[EMAIL PROTECTED]> wrote: > > ...well the title says it all > > I index some documents - all with the same fields... One of the fields, > "id" is unique for the indexed documents. If i try to ind

How do I avoid reindexing?

2005-09-10 Thread Filip Anselm
...well the title says it all I index some documents - all with the same fields... One of the fields, "id" is unique for the indexed documents. If i try to index a document with an id, that is already indexed - the old document should be updated or replaced with the new document, so that I avoid i

Lucene and Derby

2005-09-10 Thread Mag Gam
Has anyone been able to integrate Lucene with Apache Derby? I am in need of Full text indexing for my database.

Re: IndexReader delete doc! delete terms?

2005-09-10 Thread dozean
Ok... but can i search in documents which are marked for deletion? Bye > --- Ursprüngliche Nachricht --- > Von: Yonik Seeley <[EMAIL PROTECTED]> > An: java-user@lucene.apache.org > Betreff: Re: IndexReader delete doc! delete terms? > Datum: Fri, 9 Sep 2005 09:33:38 -0400 > > Nope. The IndexRea

How to get a list of field names of one doc?

2005-09-10 Thread Riccardo Daviddi
Hy all, I need to get a list of pair names-values (in two vector) of each fields a doc has, without knowing the names of the fields (an user can call fields as he wants). Once I get the document by hits.doc(), Document has only a method fields() to get an enumeration, but it's not what I want (