# Search API not returning all the results

**URL:** <https://discuss.elastic.co/t/search-api-not-returning-all-the-results/232483>\
**Category:** Elasticsearch\
**Created:** [May 13, 2020, 4:45pm UTC](https://discuss.elastic.co/t/search-api-not-returning-all-the-results/232483 "2020-05-13T16:45:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![labuka](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@labuka](https://discuss.elastic.co/u/labuka)\
**Post date:** [May 13, 2020, 4:45pm UTC](https://discuss.elastic.co/t/search-api-not-returning-all-the-results/232483/1 "2020-05-13T16:45:12Z")

</div>

I have three indexes, all three of them share a particular key-value pair. When I do a blanket search with the api "[http://localhost:9200/\_search](http://localhost:9200/_search)" using the request body

```auto
{"query":{
	"query_string":
	{
		"query":"city*"
		
		}
	}
}

```

It is only returning results from two of the indexes. I tried using the same request body by altering the url to search only in that missed index and that's working. Am I missing anything here?

The code for inserting all three indexes follow the same procedure.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 10, 2020, 4:56pm UTC](https://discuss.elastic.co/t/search-api-not-returning-all-the-results/232483/2 "2020-06-10T16:56:03Z")

</div>

Closed on June 10, 2020, 4:56pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
