Skip to content

Instantly share code, notes, and snippets.

View hermeGarcia's full-sized avatar

Herme hermeGarcia

View GitHub Profile
@hermeGarcia
hermeGarcia / mustnot_tantivy.rs
Last active February 14, 2024 15:31
Unexpected behaviour using MustNot, checked till 0.21.1
use tantivy::collector::DocSetCollector;
use tantivy::query::{AllQuery, BooleanQuery, Occur, TermQuery};
use tantivy::schema::IndexRecordOption;
use tantivy::schema::Schema;
use tantivy::schema::Term;
use tantivy::schema::{STORED, STRING};
use tantivy::Index;
let dir = tempfile::tempdir().unwrap();
let mut sb = Schema::builder();