Hi Samuel,
Indeed, you can have a PK-like identifier field in each Lucene Document and use
deleteDocument(new Term("your PK field", "your ID"))
While Having an ID field that uniquely identifies a document is not a must, it
is a Lucene best practice in my book and experience so far.
Otis
--
Luce
Is it not true for any RDBMS table as well which does not have a Primary
Key?
If this is a problem that you are facing, then it can be solved by
introducing one unique identifier as a field in your index which would
act as a Primary Key for your index.
Using an untokenized field might not be a good