Skip to contents

Number of searchable documents

Usage

tnt_num_docs(idx)

Arguments

idx

A tnt_index.

Value

A single numeric value (committed document count).

Examples

idx <- tnt_index_df(data.frame(t = "hello world"), text = t)
tnt_num_docs(idx)
#> [1] 1