LPS-32589 Fix bug in Search API