betty.project.extension.cotton_candy.search module

Provide Cotton Candy’s search functionality.

class betty.project.extension.cotton_candy.search.Index[source]

Bases: object

Build search indexes.

This is internal. It MAY be used anywhere in Betty’s source code, but MUST NOT be used by third-party code.

__init__(ancestry: Ancestry, jinja2_environment: Environment, job_context: Context | None, localizer: Localizer)[source]
async build() Sequence[_Entry][source]

Build the search index.