search.cli

Provides commands related to the onegov.search.

Module Contents

Functions

psql_index_status(→ None)

Prints the percentage of indexed documents per model.

reindex(→ Callable[[CoreRequest, Framework], None])

Reindexes all objects in the elasticsearch and psql database.

index_status(→ Callable[[CoreRequest, Framework], None])

Prints the status of the psql index.

Attributes

cli

search.cli.cli[source]
search.cli.psql_index_status(app: onegov.core.framework.Framework) None[source]

Prints the percentage of indexed documents per model.

search.cli.reindex(group_context: onegov.core.cli.core.GroupContext, fail: bool) Callable[[CoreRequest, Framework], None][source]

Reindexes all objects in the elasticsearch and psql database.

search.cli.index_status(group_context: onegov.core.cli.core.GroupContext) Callable[[CoreRequest, Framework], None][source]

Prints the status of the psql index.