hsearch_db()
builds and caches the help search database for
subsequent use by help.search
. (In fact, re-builds only
when forced (rebuild = TRUE
) or “necessary”.)
The format of the help search database is still experimental, and may
change in future versions. Currently, it consists of four tables: one
with base information about all documentation objects found, including
their names and titles and unique ids; three more tables contain the
individual aliases, concepts and keywords together with the ids of the
documentation objects they belong to. Separating out the latter three
tables accounts for the fact that a single documentation object may
provide several of these entries, and allows for efficient searching.
See the details in help.search
for how searchable
entries are interpreted according to help type.
hsearch_db_concepts()
and hsearch_db_keywords()
extract
all concepts or keywords, respectively, from a help search database,
and return these in a data frame together with their total frequencies
and the numbers of packages they are used in, with entries sorted in
decreasing total frequency.