Skip to contents

Create & open indexes

Build an index from a data frame, or from an explicit schema.

tnt_index_df()
Index a data frame in one call
tnt_index()
Create or open a search index
tnt_index_info()
Index schema as a tibble
tnt_num_docs()
Number of searchable documents

Define a schema

Field types and stemming options.

tnt_schema()
Create a search schema
tnt_text() tnt_i64() tnt_u64() tnt_f64() tnt_bool() tnt_date() tnt_json()
Define schema fields
tnt_stemmers()
List supported stemmer languages

Write documents

Add, update, delete and commit.

tnt_add()
Add documents to an index
tnt_commit()
Commit pending changes
tnt_update()
Update documents (delete then re-add)
tnt_delete()
Delete documents by field value
tnt_search()
Search an index
tnt_count()
Count matching documents

Package

tantivyr tantivyr-package
tantivyr: Fast Full-Text Search for R with 'Tantivy'
tantivy_version()
Version of the bundled 'Tantivy' engine