Crate tantivy [] [src]

tantivy

Tantivy is a search engine library. Think Lucene, but in Rust.

A good place for you to get started is to check out the example code ( literate programming / source code)

Modules

collector

Collector module

directory

Directory module

merge_policy

Tantivy's makes it possible to personalize when the indexer should merge its segments

postings

Postings module (also called inverted index)

query

Query module

schema

Schema

Structs

DocAddress

DocAddress contains all the necessary information to identify a document given a Searcher object.

Document

Tantivy's Document is the object that can be indexed and then searched for.

Index

Tantivy's Search Index

IndexWriter

IndexWriter is the user entry-point to add document to an index.

Searcher

Holds a list of SegmentReaders ready for search.

Segment

A segment is a piece of the index.

SegmentReader

Entry point to access all of the datastructures of the Segment

Term

Term represents the value that the token can take.

TimerTree

Timer tree

Enums

Error

Generic tantivy error.

SegmentPostingsOption

Object describing the amount of information required when reading a postings.

Traits

Directory

Write-once read many (WORM) abstraction for where tantivy's index should be stored.

DocSet

Represents an iterable set of sorted doc ids.

Postings

Postings (also called inverted list)

Type Definitions

DocId

u32 identifying a document within a segment. Documents have their doc id assigned incrementally, as they are added in the segment.

Result

Tantivy result.

Score

f32 the score of a document.

SegmentLocalId

A segment local id identifies a segment. It only makes sense for a given searcher.