es里的document的"_id"和org.apache.lucene.search.ScoreDoc.doc是什么关系
hapjin 赞同来自: liuliuliu org.apache.lucene.search.ScoreDoc.doc 应该是:Apache Lucene - Index File Formats 提到的:Document Numbers 文档 index 到Lucene中时,会生成 segment。document nubmer从0开始,每索引一篇文档到segment里面,document nubmer加1.segment内document number是唯一的。 Internally, Lucene refers to documents by an integer document number. The first document added to an index is num...阅读全文