aleph.index.entities

aleph.index.entities.delete_collection_entities()
aleph.index.entities.delete_entity(entity_id)

Delete an entity from the index.

aleph.index.entities.delete_entity_references(entity_id)

Delete all entities associated with any collection.

This is used by the indexentities management command in order to clear out any leftover entities in the index.

aleph.index.entities.delete_pending()

Deletes any pending entities.

aleph.index.entities.document_updates(q, entity_id)
aleph.index.entities.generate_entities(document)
aleph.index.entities.get_count(entity)

Inaccurate, as it does not reflect auth.

aleph.index.entities.index_entity(entity)

Index an entity.

aleph.index.entities.update_entity_references(entity)

Same as above but runs in bulk for a particular entity.