# Search api problem with filter geolocation field

**URL:** <https://discuss.elastic.co/t/search-api-problem-with-filter-geolocation-field/344468>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [October 5, 2023, 10:03am UTC](https://discuss.elastic.co/t/search-api-problem-with-filter-geolocation-field/344468 "2023-10-05T10:03:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apiwat\_Jaisak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apiwat_jaisak/32/126262_2.png) [@Apiwat\_Jaisak](https://discuss.elastic.co/u/Apiwat_Jaisak)\
**Post date:** [October 5, 2023, 10:03am UTC](https://discuss.elastic.co/t/search-api-problem-with-filter-geolocation-field/344468/1 "2023-10-05T10:03:01Z")

</div>

```auto
{
    "query": "",
    "page": {
        "size": 5,
        "current": 1
    },
    "sort": {
        "write_date": "asc"
    },
    "filters": {
        "all": [
            {
                "map_location": {                
                    "distance": 10000,
                    "unit": "m",
                    "center": "13.757966, 100.5345012"
                }
            }
        ]
    }
}

```

When I make a request with that body, it doesn't return any data. However, when I increase the page size to 500, it does return data.

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [October 5, 2023, 10:11am UTC](https://discuss.elastic.co/t/search-api-problem-with-filter-geolocation-field/344468/2 "2023-10-05T10:11:23Z")

</div>

Hi @Apiwat_Jaisak !

Could you please use the [Search Explain API](https://www.elastic.co/guide/en/app-search/current/search-explain.html) to obtain the Elasticsearch queries that are being done with the two page sizes, and post them here so we can take a look at the problem?

Thanks!

---

<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:** [November 2, 2023, 10:11am UTC](https://discuss.elastic.co/t/search-api-problem-with-filter-geolocation-field/344468/3 "2023-11-02T10:11:44Z")

</div>

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