Skip to content

Commit

Permalink
Refactor manifest ES request creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc committed Mar 21, 2024
1 parent bd68050 commit 7a2ef5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/azul/service/elasticsearch_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,14 @@ def create_chain(self,

def create_request(self,
catalog: CatalogName,
entity_type: str
entity_type: str,
doc_type: DocumentType = DocumentType.aggregate
) -> Search:
"""
Create an Elasticsearch request against the index containing aggregate
documents for the given entity type in the given catalog.
Create an Elasticsearch request against the index containing documents
for the given entity+document type in the given catalog.
"""
return Search(using=self._es_client,
index=str(IndexName.create(catalog=catalog,
qualifier=entity_type,
doc_type=DocumentType.aggregate)))
doc_type=doc_type)))

0 comments on commit 7a2ef5b

Please sign in to comment.