From e766375700a4f7ffe4910ff036f078fbbbe3b0ce Mon Sep 17 00:00:00 2001 From: saroh <325288+saroh@users.noreply.github.com> Date: Mon, 23 May 2022 19:49:31 +0200 Subject: [PATCH] remove useless example --- examples/json_field.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/json_field.rs b/examples/json_field.rs index 107beddde..9a2bf5d87 100644 --- a/examples/json_field.rs +++ b/examples/json_field.rs @@ -82,13 +82,8 @@ fn main() -> tantivy::Result<()> { let hits = searcher.search(&*query, &TopDocs::with_limit(2))?; assert_eq!(hits.len(), 0); } - // ## Default json fields are ignored if they collide with the schema - { - let query = query_parser.parse_query("holiday-sale")?; - let hits = searcher.search(&*query, &TopDocs::with_limit(2))?; - assert_eq!(hits.len(), 0); - } { + // Default json fields are ignored if they collide with the schema let query = query_parser.parse_query("event_type:holiday-sale")?; let hits = searcher.search(&*query, &TopDocs::with_limit(2))?; assert_eq!(hits.len(), 0);