reusing Document with multiple fields in lucene 2.3

2008-08-29 Thread Gunjan Juyal
Hello all! I have a document structure such that each document can have multiple and variable number of fields of a given name. For example: - Document-1 has two fields with the name "fld1" and three fields with the name "fld2"; - Document-2 has five fields with the name "fld1" and one field with

Do doc-ids always increment by 1 if no deletion is done?

2008-08-14 Thread Gunjan Juyal
Hi. I am creating an index where there are no deletions, just additions. After the index creation is done I need to create another mapping of doc-ids to some data. If there are only additions and no deletions then can we assume that the doc-ids will be in the same order in which the documents we