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 |
WORM directory abstraction. |
fastfield |
Fast fields is a column oriented storage storage. |
merge_policy |
Defines tantivy's merging strategy |
postings |
Postings module (also called inverted index) |
query |
Query module |
schema |
Schema |
store |
Row-oriented, slow, compressed storage of documents Tantivy's store is a compressed, row-oriented storage. |
termdict |
The term dictionary is one of the key datastructure of
tantivy. It associates sorted |
Macros
doc |
|
Structs
DocAddress |
|
Document |
Tantivy's Document is the object that can be indexed and then searched for. |
Error |
The Error type. |
Index |
Tantivy's Search Index |
IndexWriter |
|
Searcher |
Holds a list of |
Segment |
A segment is a piece of the index. |
SegmentId |
Tantivy |
SegmentMeta |
|
SegmentReader |
Entry point to access all of the datastructures of the |
Term |
Term represents the value that the token can take. |
TimerTree |
Timer tree |
Enums
ErrorKind |
The kind of an error. |
SegmentComponent |
Enum describing each component of a tantivy segment.
Each component is stored in its own file,
using the pattern |
SegmentPostingsOption |
Object describing the amount of information required when reading a postings. |
Traits
Directory |
Write-once read many (WORM) abstraction for where tantivy's data should be stored. |
DocSet |
Represents an iterable set of sorted doc ids. |
Postings |
Postings (also called inverted list) |
ResultExt |
Additional methods for |
Functions
i64_to_u64 |
Maps a |
u64_to_i64 |
Reverse the mapping given by |
version |
Expose the current version of tantivy, as well whether it was compiled with the simd compression. |
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. |