In Solr, I noticed that I can sort by the internal Lucene _docid_. -> http://wiki.apache.org/solr/CommonQueryParameters <http://wiki.apache.org/solr/CommonQueryParameters>
> You can sort by index id using sort=_docid_ asc or sort=_docid_ desc * I have also read the docid is represented by a sequential number. -> http://lucene.472066.n3.nabble.com/Get-DocID-after-Document-insert-td556278.html <http://lucene.472066.n3.nabble.com/Get-DocID-after-Document-insert-td556278.html> > Your document IDs may change, and in fact *will* change if you delete a > document and then optimize. Say you index 100 docs, delete number 50 and > optimize. Documents that originally had IDs 51-100 will now have IDs 50-99 > and your hierarchy will be messed up. -> http://www.garethfreeman.com/2011/11/sorting-results-by-order-indexed-in.html <http://www.garethfreeman.com/2011/11/sorting-results-by-order-indexed-in.html> > Just a quick one. If you are looking to sort your Solr results by the > order they were indexed you can used sort=_docid_ asc or sort=_docid_ desc > as you sorting query parameter. So there is a slight chance that the _docid_ might represent document creation order. Does anyone have knowledge and experience with the internals of Solr/Lucene 4.x and the _docid_ field to clarify this? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-docid-parameter-tp4046544.html Sent from the Solr - User mailing list archive at Nabble.com.