Skip to content

Commit

Permalink
Make the changes requested in PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
haptikrajasashtikar committed Oct 27, 2023
1 parent 0e0a94c commit b24e0f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ner_v2/detectors/textual/elastic_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def get_multi_entity_results(self, entities, texts, fuzziness_threshold=1,
results = _parse_multi_entity_es_results(response.get("responses"))
if log_es_result:
ner_logger.info(f'[ES Result for Entities] result: {results}')
ner_logger.info(f'[ES Result for Entities] kwargs: {kwargs}')

Check warning on line 163 in ner_v2/detectors/textual/elastic_search.py

View check run for this annotation

Codecov / codecov/patch

ner_v2/detectors/textual/elastic_search.py#L161-L163

Added lines #L161 - L163 were not covered by tests
except es_exceptions.NotFoundError as e:
raise DataStoreRequestException(f'NotFoundError in datastore query on index: {index_name}',
engine='elasticsearch', request=json.dumps(data),
Expand Down

0 comments on commit b24e0f3

Please sign in to comment.