Adds the rows of data as documents. Only columns whose names match a schema
field are used; other columns are ignored. Additions become searchable after
tnt_commit().
Examples
sch <- tnt_schema(id = tnt_i64(), body = tnt_text(stemmer = "english"))
idx <- tnt_index(schema = sch)
df <- data.frame(id = 1:2, body = c("the quick fox", "lazy dogs sleep"))
idx |> tnt_add(df) |> tnt_commit()
tnt_num_docs(idx)
#> [1] 2