Skip to content

Instantly share code, notes, and snippets.

Point 1:
I create an index with a geo_point field, add one document and filter based on a bool should filter, where each shape is part of the MultiPolygon that makes up the external bounds of the USA. The result is below and all is well.
PUT companywithpoint
{
"mappings": {
"properties": {
"location": {
"type": "geo_point"
}