Update examples/json_field.rs

This commit is contained in:
PSeitz
2022-05-23 11:59:42 +02:00
committed by GitHub
parent 0aa3d63a9f
commit 93cc8498b3

View File

@@ -75,7 +75,8 @@ fn main() -> tantivy::Result<()> {
assert_eq!(hits.len(), 1);
}
{
// The sub-fields in the json field marked as default field still need to be explicitly addressed
// 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);