Explicitly set document ID #1450
Unanswered
timpamungkas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I set the
Document
ID explicitly?The Javadoc for
Document
shows constructor withid
field, but when usingTikaDocumentReader
, what I got isList<Document>
and I can't iterate the document and do something likesetId()
.Will need explicit ID to avoid duplicate document stored on vector store.
(Or anybody has technique to avoid duplicate document on vetor store?)
Beta Was this translation helpful? Give feedback.
All reactions