: We need to have a document id available for every document (Per core). : We can pass docid as one of the parameter for fq, and it will return the : docid in the search result.
So it sounds like you need a *unique* id, but nothing you described requies that it be a counter. Take a look at the UUIDField, or consider using the SignatureUpdateProcessor to generate a key based on a hash of all the field values. -Hoss