kontex 0.2.0

Kontex is a full text search index.
Documentation
  • Coverage
  • 12.5%
    1 out of 8 items documented1 out of 2 items with examples
  • Size
  • Source code size: 28.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.38 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ChrisMacNaughton/kontex
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ChrisMacNaughton

kontex

Kontex is a full text search index.

Examples

use kontex::{Document, Index, Search};
use std::collections::HashMap;

let mut index = Index::new();

let mut attrs = HashMap::new();
attrs.insert("content", "Hello, World!");
attrs.insert("title", "Hello");
let document = Document::from_attributes(attrs);
let _ = index.add_document(document.clone());

let mut search: HashMap<&str, &str> = HashMap::new();
search.insert("*", "world");
let result = index.search(Search::from_attributes(search));

println!("{:?}", index);
assert_eq!(*result.first().unwrap(), document);

Status

This is under very active development so APIs may change or break without warning. If you need stable search indexing, I suggest you use something like Apache Lucene.