lucene能不能实现唯一索引
发布网友
发布时间:2022-04-25 20:55
我来回答
共1个回答
热心网友
时间:2022-06-17 07:55
搜索时的例子:
Term t11 = new Term("ID", "123456");
Query query11 = new TermQuery(t11);
TopDocs topDocs11 = searcher_tmp.search(query11, 1);
for (ScoreDoc scoreDoc11 : topDocs11.scoreDocs) {
int docNum11 = scoreDoc11.doc;
String id=searcher