From d6e220cc8dbe0c21a563e080cc4023241669fc84 Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Tue, 4 Dec 2018 06:43:32 +0100 Subject: [PATCH] Actually index post_id in tantivy Otherwise you can't remove/edit a document --- plume-models/src/search/searcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plume-models/src/search/searcher.rs b/plume-models/src/search/searcher.rs index 06898e6f..0ae53ad5 100644 --- a/plume-models/src/search/searcher.rs +++ b/plume-models/src/search/searcher.rs @@ -47,7 +47,7 @@ impl Searcher { 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_text_field("instance", tag_indexing.clone());