aleph.index.entities

aleph.index.entities._index_updates(collection, entities)

Look up existing index documents and generate an updated form.

This is necessary to make the index accumulative, i.e. if an entity or link gets indexed twice with different field values, it’ll add up the different field values into a single record. This is to avoid overwriting the document and losing field values. An alternative solution would be to implement this in Groovy on the ES.

aleph.index.entities.delete_entity(entity_id)

Delete an entity from the index.

aleph.index.entities.finalize_index(data, schema)

Apply final denormalisations to the index.

aleph.index.entities.get_entity(entity_id)

Fetch an entity from the index.

aleph.index.entities.index_bulk(collection, entities)

Index a set of entities.

aleph.index.entities.index_entity(entity)

Index an entity.