search.integration
Classes
Provides elasticsearch and postgres integration for |
Module Contents
- class search.integration.SearchApp[source]
Bases:
morepath.AppProvides elasticsearch and postgres integration for
onegov.core.framework.Frameworkbased applications.The application must be connected to a database.
Usage:
from onegov.core import Framework class MyApp(Framework, ESIntegration): pass
- configure_search(**cfg: Any) None[source]
Configures the postgres fulltext search integration.
The following configuration options are accepted:
- Enable_search:
If True, postgres fulltext search is enabled (defaults to True).
- fts_create_search_configurations(schema: str, connection: sqlalchemy.engine.Connection) None[source]
- fts_may_use_private_search(request: onegov.core.request.CoreRequest) bool[source]
Returns True if the given request is allowed to access private search results. By default every logged in user has access to those.
This method may be overwritten if this is not desired.