Questions tagged [elasticsearch-geo-shape]

geo_shape mapping type in Elasticsearch that facilitates indexing and searching of abitrary geo shapes such as polygons.

The geo_shape mapping type in Elasticsearch.

The geo_shape mapping type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles and polygons. You can query documents using this type using geo_shape Filter or geo_shape Query.

The geo_shape mapping maps geo_json geometry objects to the geo_shape type.

44 questions
1
vote
1 answer

Elasticsearch - seach document with geo_shape based on other document geo_shape

is there an option to perform search using one query in ElasticSearch like that: Get document with ID = 1 This document has a field with geo_shape mapping Get values from that field Search for other documents which geo_shape field intersects with…
Daniel
  • 338
  • 3
  • 13
1
vote
1 answer

Querying ElasticSearch for all documents with a Geo Point that intersects/within an indexed Geo Shape

I have a collection of geo_shapes pulled from a shape file that I have indexed into ES. I also have a large index of documents with geo_points. I'm trying to run a query that returns all the documents that have a point within a geo_shape, but keep…
Jason
  • 55
  • 8
1
vote
1 answer

Elasticsearch - MissingMethodException on running distanceInKm on geo_point array

I have an elasticsearch document which has an array of geo_points. I have created the mapping as: { "test": { "properties": { "locations": { "type": "geo_point" } } } } Now, I am…
R4chi7
  • 853
  • 1
  • 11
  • 36
1
vote
1 answer

Elasticsearch geo_shape filter no results

I'm having issues with getting my geo_shape filter to return results when filtering on a nested location. Suppose I have the following: PUT test/test/_mapping { "properties": { "name": { "type": "string" }, "gatheringEvent": { …
Byron Voorbach
  • 4,365
  • 5
  • 27
  • 35
1
vote
1 answer

Documents with a geo_shape field cannot be deserialized?

My index contains a field that is of type Nest.GeoShape. ---------- Problem #1 -- Kibana shows that field as "indexed = false" even though it has been defined like this (with .MapFromAttributes() during index creation)... [ElasticProperty(Index…
Jarvis
  • 681
  • 8
  • 33
0
votes
0 answers

Why does elasticsearch return different results when using 'contains' and 'within' in a geoshape query where index shape and query shape are the same?

Consider the following: I have one index that contains a geoshape field. The geoshape can represent anything, but as an example we can consider that the indexed shape is a rectangle: We're creating the index with a geoshape field named location: PUT…
0
votes
0 answers

OpenSearch: aggregate geoshapes into buckets based on distance

I cannot find any working documentation or examples on how to query the data and aggregate the results into buckets based on distance. Example I would like to query the data and get back a clustering of geoshapes, given the following data: [ { …
0
votes
0 answers

Elastic Polygon Shape query using Nest

I am trying to get the following Elastic query filter working by using Nest client { "geo_shape" : { "SitePoint" : { "shape" : { "type" : "polygon", "orientation" : "right", "coordinates" : [ [ [ …
KJSR
  • 1,679
  • 6
  • 28
  • 51
0
votes
1 answer

OpenSearch Polygon Search

I'm having an issue regarding polygon search in AWS OpenSearch specific coordinates is not able search within the polygon however if slightly change the coordinates then it is able to search. Polygon: "location": { "type": "polygon", …
0
votes
1 answer

Elasticsearch ingest circle processor problem

I'm trying to insert a location that is using a circle processor to generate the circle points. Location [30, 10] in the document is generated with the circle points properly. docs: Circle processor | Elasticsearch Guide [8.5] | Elastic PUT…
0
votes
1 answer

elasticsearch Geop Shape query not working

One of my document (id = emergency) is a circle having a 30000 meter radius: GET seller-67/_doc/emergency { "_index": "seller-67", "_type": "_doc", "_id": "emergency", "_version": 1, "_seq_no": 0, …
0
votes
1 answer

elasticsearch: DISJOINT query relation not supported for Field

I have created the simplest index in ES v7.10: it maps mylocation field into geo_point (not geo_shape): PUT /myindex { "mappings": { "dynamic": "false", "properties": { "mylocation": { "type":…
OhadR
  • 8,276
  • 3
  • 47
  • 53
0
votes
0 answers

Elastic Search geo shape query not working

I have a polygon and 2 points. The polygon is a Elastic Search document (where the location fields has a "polygon" type) I'm running a query to figure rather or not these 2 points are inside this polygon: The polygon is in grey and the 2 points…
woshitom
  • 4,811
  • 8
  • 38
  • 62
0
votes
1 answer

Elasticsearch 7.5.3 RequestError(400, ‘parse_exception’, ‘numeric value expected’) performing geo-polygon query

I am trying to do a geo-polygon query with Elasticsearch version 7.5.3, running into this exception: elasticsearch.exceptions.RequestError: RequestError(400, 'parse_exception', 'numeric value expected') I want to check if a geo_point (oldlocation)…
0
votes
1 answer

Elasticsearch '[bool] failed to parse field [filter]'

I'm trying to solve parsing exception of my search query. "type" : "x_content_parse_exception", "reason" : "[18:9] [bool] failed to parse field [filter]" I hope someone can help me thanks GET /g20/_search { "query": { "bool": { "must": { …