mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Mass_parse: Embed score in full-text search index
This commit is contained in:
@@ -34,6 +34,7 @@ public class Xopg_db_page {
|
||||
public void Exists_n_() {this.Exists_(Bool_.N);}
|
||||
public void Exists_(boolean v) {this.exists = v;}
|
||||
public Xopg_db_page Id_(int v) {this.id = v; return this;}
|
||||
public Xopg_db_page Score_(int v) {this.score = v; return this;}
|
||||
public Xopg_db_page Modified_on_(DateAdp v) {this.modified_on = v; return this;}
|
||||
public Xopg_db_page Html_db_id_(int v) {this.html_db_id = v; return this;}
|
||||
|
||||
@@ -53,6 +54,10 @@ public class Xopg_db_page {
|
||||
this.ttl = wiki.Ttl_parse(ns_id, ttl_bry);
|
||||
return this;
|
||||
}
|
||||
public void Init_by_mp(int id, int score) {
|
||||
this.id = id;
|
||||
this.score = score;
|
||||
}
|
||||
public void Clear() {
|
||||
this.exists = true;
|
||||
this.modified_on = DateAdp_.MinValue; // NOTE: must set to MinValue else some tests will fail
|
||||
|
||||
Reference in New Issue
Block a user