making search work again with the api/elastic search

This comment should be kept.