document id as a result of "add-document-to-index"

13 views
Skip to first unread message

thecat

unread,
Dec 8, 2009, 4:23:50 PM12/8/09
to montezuma-dev
Hello,

Is it possible to get the document id after the call to "add-document-
to-index" ?
I need to store the id in a separate structure to easyly retrieve it
latter.

Thanks for your works on this project !

Christophe

Yoni Rabkin

unread,
Dec 9, 2009, 1:16:17 AM12/9/09
to montezuma-dev
Storing the document ID outside of Montezuma isn't recommended. Please
see [http://lucene.apache.org/java/2_1_0/fileformats.html#Document
%20Numbers]

I would recommend generating an identifier which is unique for your
application and storing that as an additional field in each document.
Reply all
Reply to author
Forward
0 new messages