Search¶
Search module.
CLI¶
CLI for Asclepias broker search module.
API¶
Relationships search API.
-
class
asclepias_broker.search.api.
RelationshipAPI
[source]¶ Relationship API.
-
classmethod
get_citations
(identifier, with_parents=False, with_siblings=False, expand_target=False)[source]¶ Get citations of an identfier from the database.
-
classmethod
Indexer¶
Elasticsearch indexing module.
-
asclepias_broker.search.indexer.
build_doc
(rel, src_grp=None, trg_grp=None, grouping=None)[source]¶ Build the ES document for a relationship.
Return type: dict
-
asclepias_broker.search.indexer.
build_group_metadata
(group)[source]¶ Build the metadata for a group object.
Return type: dict
-
asclepias_broker.search.indexer.
build_id_info
(id_)[source]¶ Build information for the Identifier.
Return type: dict
-
asclepias_broker.search.indexer.
build_relationship_metadata
(rel)[source]¶ Build the metadata for a relationship.
Return type: dict
-
asclepias_broker.search.indexer.
delete_group_relations
(group_ids)[source]¶ Delete all relations for given group IDs from ES.
-
asclepias_broker.search.indexer.
index_documents
(docs, bulk=False)[source]¶ Index a list of documents into ES.
-
asclepias_broker.search.indexer.
index_identity_group_relationships
(ig_id, vg_id, exclude_group_ids=None)[source]¶ Build the relationship docs for Identity relations.
Query¶
Search utilities.
-
asclepias_broker.search.query.
enum_term_filter
(label, field, choices)[source]¶ Term filter with controlled vocabulary.
Tasks¶
Asynchronous tasks.