tique
Utilities to drive a tantivy search index
Overview
Here's a brief overview of the functionality we provide. Check the module docs for more details and examples.
conditional_collector
Collectors with built-in support for changing the ordering and cursor-based pagination (or rather: support for conditionally skipping documents that match the query).
use ;
let min_rank_collector =
new.top_fast_field;
topterms
Uses your index to find keywords and similar items to your documents or any arbitrary input.
let topterms = new?;
let keywords = topterms.extract;
let similarity_query = keywords.into_boosted_query;
QueryParser
A query parser with a simple grammar geared towards usage by end-users, with no knowledge about IR, your index nor boolean logic.
Supports multiple fields, boosts, required (+) and restricted (-)
items and can generate queries using DisMaxQuery
for better
results when you have fields with very similar vocabularies.
NOTE: Requires the queryparser
compilation feature.
let parser = new?;
if let Some = parser.parse
Dependency Policy
This library's default dependency will always be just tantivy
, anything
that requires more will be added as optional feature.