Skip to content

Commit

Permalink
Exclude errors from ESearchResults
Browse files Browse the repository at this point in the history
  • Loading branch information
XavRsl committed Dec 6, 2024
1 parent 4479b36 commit 32d189e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Resources/Extractors/EutilsEsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ protected function fillSearchTree(): void
throw new UnparseableApiException();
}

if (array_key_exists('errorlist', $this->document['esearchresult'])) {
throw new UnparseableApiException();
}

$this->searchTree = $this->document['esearchresult'];
}

Expand Down

0 comments on commit 32d189e

Please sign in to comment.