From 496b4a4fdb65f7a029b708bd3e1844b2f02132b2 Mon Sep 17 00:00:00 2001 From: PSeitz Date: Mon, 23 May 2022 12:24:36 +0200 Subject: [PATCH] Update examples/json_field.rs --- examples/json_field.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/json_field.rs b/examples/json_field.rs index 07f689c35..107beddde 100644 --- a/examples/json_field.rs +++ b/examples/json_field.rs @@ -52,7 +52,8 @@ fn main() -> tantivy::Result<()> { let searcher = reader.searcher(); // # Default fields: event_type and attributes - // By setting attributes as a default field it allows omitting attributes itself, e.g. "target", instead of "attributes.target" + // By setting attributes as a default field it allows omitting attributes itself, e.g. "target", + // instead of "attributes.target" let query_parser = QueryParser::for_index(&index, vec![event_type, attributes]); { let query = query_parser.parse_query("target:submit-button")?;