tique

crates.io docs.rs License: MIT

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).

```rust use tique::conditional_collector::{Ascending, TopCollector};

let minrankcollector = TopCollector::::new(10, true).topfastfield(f64_field); ```

topterms

Uses your index to find keywords and similar items to your documents or any arbitrary input.

```rust let topterms = TopTerms::new(&index, vec![body, title])?; let keywords = topterms.extract(5, "the quick fox jumps over the lazy dog");

let similarityquery = keywords.intoboosted_query(1.0); ```

Dependency Policy

This library's default dependency will always be just tantivy, anything that requires more will be added as optional feature.

Unstable

This crate contains unpolished functionality that is made available through the unstable feature flag: