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
0
votes
0 answers

How to generate a pie chart from geo_points within a geo_shape in ELK?

ELK stack newbie here. I have created a map by importing GEOJSON data in KIBANA. The data is indexed as geo_shape and it contains the World's territorial waters area. It represents a layer in my map. I have then added another layer, always using…
0
votes
1 answer

Find coordinates in a polygon

How can I find polygons that stored in elastic index. Simple mapping: PUT /regions { "mappings": { "properties": { "location": { "type": "geo_shape" } } } } And simple…
0
votes
1 answer

Reading geo_shape as GeoJSON text

I currently have an elasticsearch query through NEST that is retrieving an object such as public class ElasticSearchObject { [PropertyName("code")] public string Code { get; set; } [PropertyName("geometria")] …
Jorge Y.
  • 1,123
  • 1
  • 9
  • 16
0
votes
1 answer

Failed to create valid geo_shape

I'm getting a weird error while trying to create a geo_shape on ES 6.6.1. Say my index has the following mapping: PUT index { "mappings" : { "doc" : { "properties" : { "parcel" : { "type" : "geo_shape" …
Val
  • 207,596
  • 13
  • 358
  • 360
0
votes
0 answers

Elasticsearch geo_shape query giving wrong results

I am facing am issue, I know how to find all geo_points in a particular radius but I need to find how many regions or geo_shape a particular point lies in. To solve this issue, I have made following index: PUT /users And this mapping: PUT…
sphinx
  • 717
  • 1
  • 7
  • 19
0
votes
0 answers

Elasticsearch nested geo-shape query

Suppose I have the following mapping: "mappings": { "doc": { "properties": { "name": { "type": "text" }, "location": { "type": "nested", "properties": { "point": { …
0
votes
1 answer

ElasticSearch geo_shape Query not returning expected results

Here is the code that creates my mapping for my posts.d $this->createMapping('posts', [ 'id' => ['type' => 'integer'], 'title' => ['type' => 'string'], 'description' => ['type' => 'string'], 'price' => ['type' =>…
Joseph Crawford
  • 1,470
  • 1
  • 15
  • 29
0
votes
1 answer

Integrating Leaflet Geojson Objects into Elasticsearch Geoshape Query in AngularJs

I have a geoshape query which is running on a local ES instance which is as follows: httprequest.js with geoshape query spatialsearch() { var _url = 'http://127.0.0.1:9201/_search?'; var b = { …
0
votes
1 answer

integrating geojson query to generate http requests in angularjs

i am trying to integrate geoshape query from elastic search into my angularjs code to make an http request to fetch the data that is residing on elasticsearch local instance but the console throws error that invalid XMLhttp parameters. I guess it is…
0
votes
1 answer

Given a lat/lng, find every circle that the lat/lng is in

I have a list geoshape documents like this: { "location" : { "type" : "circle", "coordinates" : [-45.0, 45.0], "radius" : "8000m" } } Given a lat/lng, I want to find all the documents that this lat/lng is in.
samol
  • 18,950
  • 32
  • 88
  • 127
0
votes
1 answer

Elasticsearch: "reason": "failed to find geo_point field"

I am trying to sync mysql data (which changes dynamically) with elasticsearch. I am using logstash for the syncing purpose. I need to filter the list of vehicles in the radius of 1KM for the passed geo_points. While making a geo_point query on…
0
votes
1 answer

Store Geoshape to Elasticsearch using EShadoop from pig

I'm trying to store geoshape (like the following) to ES via pig using org.elasticsearch.hadoop.pig.EsStorage (2.2.0) : { "location" : { "type" : "circle", "coordinates" : [-45.0, 45.0], "radius" : "100m" } } or : { …
0
votes
1 answer

Cant Insert Geo Shapes into elasticsearch

I am trying to move my data from sql to elasticsearch. I have an exception every time i try adding a polygon shape. I use WktReader to read the WKT and add it in a JeoJson class. The class contains type (polygon) and coordinates coordinates build…
0
votes
1 answer

elasticsearch geo_shape query return no results

I'm trying to get a list of record intersecting a circle. the mappings: I have a geo_point and a geo_shape but I'm referring at geo_shape exclusively { "mappings": { "poi": { "properties": { "id": { …
lcapra
  • 1,420
  • 16
  • 18
1 2
3