remove useless example

This commit is contained in:
saroh
2022-05-23 19:49:31 +02:00
parent 496b4a4fdb
commit e766375700

View File

@@ -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);