[][src]Crate 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 tique::conditional_collector::{Ascending, TopCollector};

let min_rank_collector =
    TopCollector::<f64, Ascending, _>::new(10, true).top_fast_field(f64_field);

topterms

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

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

Modules

conditional_collector

Top-K Collectors, with ordering and condition support.

topterms

Extract keywords and search for similar documents based on the contents of your index.