Integrating the indexer query