elasticsearch build index and search with complex query and filter