From 0aa3d63a9f4d1b9b209dbfbb2a2d0ec58ce0de3f Mon Sep 17 00:00:00 2001 From: PSeitz Date: Mon, 23 May 2022 11:39:45 +0200 Subject: [PATCH] Update examples/json_field.rs --- examples/json_field.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/json_field.rs b/examples/json_field.rs index bcbf3ea4d..ac4553b6f 100644 --- a/examples/json_field.rs +++ b/examples/json_field.rs @@ -75,7 +75,7 @@ fn main() -> tantivy::Result<()> { assert_eq!(hits.len(), 1); } { - // The default json fields need to be prefixed by the path + // The sub-fields in the json field marked as default field still need to be explicitly addressed let query = query_parser.parse_query("click AND 133")?; let hits = searcher.search(&*query, &TopDocs::with_limit(2))?; assert_eq!(hits.len(), 0);