Indexing The Database (indra_cogex.indexing
)
A collection of functions for indexing on the database.
- index_evidence_on_stmt_hash(client, exist_ok=False)[source]
Index all Evidence nodes on the stmt_hash property
- Parameters:
client (
Neo4jClient
) – Neo4jClient instance to the graph database to be indexedexist_ok (
bool
) – If False, raise an exception if the index already exists. Default: False.
- index_indra_rel_on_stmt_hash(client)[source]
Index all indra_rel relationships on stmt_hash property
- Parameters:
client (
Neo4jClient
) – Neo4jClient instance to the graph database to be indexed
- index_nodes_on_id(client, exist_ok=False)[source]
Index all nodes on the id property
- Parameters:
client (
Neo4jClient
) – Neo4jClient instance to the graph database to be indexedexist_ok (
bool
) – If False, raise an exception if the index already exists. Default: False.