adhocracy_core.catalog package

Configure search catalogs.

interface ICatalogsService[source]

Extends: adhocracy_core.interfaces.IServicePool

The ‘catalogs’ ServicePool.

class CatalogsServiceAdhocracy(data=None, family=None)[source]

Bases: substanced.catalog.CatalogsService

Constructor. Data may be an initial dictionary mapping object name to object.

reindex_all(resource: <InterfaceClass adhocracy_core.interfaces.IResource>)[source]

Reindex resource with all indexes.

reindex_index(resource: <InterfaceClass adhocracy_core.interfaces.IResource>, index_name: str)[source]

Reindex resource with index index_name.

Raises:KeyError – if index_name index does not exists.
search(query: adhocracy_core.interfaces.SearchQuery) → adhocracy_core.interfaces.SearchResult[source]

Search indexes in catalogs adhocracy and system.

get_index(name) → <InterfaceClass hypatia.interfaces.IIndex>[source]
get_index_value(context: <InterfaceClass adhocracy_core.interfaces.IResource>, index_name: str)[source]

Get value of index.

add_catalogs_system_and_adhocracy(context: <InterfaceClass adhocracy_core.catalog.ICatalogsService>, registry: pyramid.registry.Registry, options: dict)[source]

Add catalogs system and adhocracy.

includeme(config)[source]

Register catalog utilities.