Skip to content

Commit e766375

Browse files
committed
remove useless example
1 parent 496b4a4 commit e766375

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/json_field.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,8 @@ fn main() -> tantivy::Result<()> {
8282
let hits = searcher.search(&*query, &TopDocs::with_limit(2))?;
8383
assert_eq!(hits.len(), 0);
8484
}
85-
// ## Default json fields are ignored if they collide with the schema
86-
{
87-
let query = query_parser.parse_query("holiday-sale")?;
88-
let hits = searcher.search(&*query, &TopDocs::with_limit(2))?;
89-
assert_eq!(hits.len(), 0);
90-
}
9185
{
86+
// Default json fields are ignored if they collide with the schema
9287
let query = query_parser.parse_query("event_type:holiday-sale")?;
9388
let hits = searcher.search(&*query, &TopDocs::with_limit(2))?;
9489
assert_eq!(hits.len(), 0);

0 commit comments

Comments
 (0)