1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Full-text search: Implement basic paging

This commit is contained in:
gnosygnu
2017-03-21 10:42:47 -04:00
parent 7924e26522
commit 49924110f4
9 changed files with 98 additions and 74 deletions

View File

@@ -82,9 +82,10 @@ public class Gflucene_searcher_mgr {
String docTitle = d.get("title");
Gflucene_doc_data doc = (Gflucene_doc_data)list.Get_by(docTitle);
if (doc == null) {
doc = new Gflucene_doc_data(Integer.parseInt(d.get("page_id")), 0, docTitle, "");
int doc_id = Integer.parseInt(d.get("page_id"));
doc = new Gflucene_doc_data(doc_id, 0, docTitle, "");
doc.lucene_score = hits[i].score;
list.Add(docTitle, doc);
list.Add(doc_id, doc);
}
// Tfds.Write(doc.lucene_score, doc.title);
}