Probably not very helpful for the original question, but for the sake of completeness: you can use the Lucene documentID with the Luke Request Handler.
https://solr.apache.org/guide/solr/latest/indexing-guide/luke-request-handler.html You can not use it as a reliable identifier for your Solr document. Lucene may change it during operations such as optimize or merge. Thomas Op zo 22 okt 2023 om 21:59 schreef Mikhail Khludnev <m...@apache.org>: > You can get internal unique identifier a kind of analogy to ROW_NUMBER via > [docid] see > > https://solr.apache.org/guide/solr/latest/query-guide/document-transformers.html#docid-docidaugmenterfactory > . > But I'm not aware about a query accepting this number. >