Actually index post_id in tantivy

Otherwise you can't remove/edit a document
This commit is contained in:
Trinity Pointard 2018-12-04 06:43:32 +01:00
parent 39deede935
commit d6e220cc8d

View File

@ -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());