mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-23 03:51:00 +00:00
Actually index post_id in tantivy
Otherwise you can't remove/edit a document
This commit is contained in:
parent
39deede935
commit
d6e220cc8d
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ impl Searcher {
|
||||||
|
|
||||||
let mut schema_builder = SchemaBuilder::default();
|
let mut schema_builder = SchemaBuilder::default();
|
||||||
|
|
||||||
schema_builder.add_i64_field("post_id", INT_STORED );
|
schema_builder.add_i64_field("post_id", INT_STORED | INT_INDEXED);
|
||||||
schema_builder.add_i64_field("creation_date", INT_INDEXED);
|
schema_builder.add_i64_field("creation_date", INT_INDEXED);
|
||||||
|
|
||||||
schema_builder.add_text_field("instance", tag_indexing.clone());
|
schema_builder.add_text_field("instance", tag_indexing.clone());
|
||||||
|
|
Loading…
Reference in a new issue