Skip to content

GeoshapePoint multiples issues #1908

@kevynbernard

Description

@kevynbernard

We are having 2 issues with querying GeoshapePoint with ES 1.7.1, and Nest 1.7.0

Here our C# :

var result = client.Search<Polygon>(
                s => s.Index(IndexNames.Ref)
                    .Query(q => q.Filtered(
                        f => f.Filter(g =>
                            g.GeoShapePoint("VertexValues",
                                d => d.Relation(GeoShapeRelation.Within).Coordinates(coordinates)
                                      )
                                )
                            )
                        ));

Here is the json generated :

{
  "query": {
    "filtered": {
      "filter": {
        "geo_shape": {
          "VertexValues": {
            "shape": {
              "coordinates": [
                48.864686,
                2.351616
              ],
              "Type": "point"
            },
            "relation": "within"
          }
        }
      }
    }
  }
}

Problems are :

  • "Type" should be in lower case
  • "relation": "within" should be inside the "shape" brackets

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions