Builtin GeoPoint shape

Open
#501 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
elasticsearch, java
Domain
api, search

Research direction

Start by locating the existing GeoLine shape and the shape or geo_shape query builders in the client API. Add the corresponding point shape and verify that its coordinates serialize to the requested geo_shape structure, using any nearby serialization or query tests as the completion check.

Written by the indexing model from the issue text.

Description

Description

Hi.

It is not possible to build a geo_shape query with the type of point with existing shape and query builders in elastic java client v8.6.0. There is GeoLine shape but it requires multiple lists of coordinates.

Desired search request is:

"geo_shape": {
  "field_name": {
    "shape": {
      "type": "point",
      "coordinates": [
        29.0,
        40.0
      ]
    }
  }
}

It can be achieved with a custom GeoPoint shape class but I think it would be nice to have it along with the GeoLine in the client api.

Dominant language
Java
Stars
524
Forks
300
Avg merge
1d 11h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from elastic/elasticsearch-java

All issues in elastic/elasticsearch-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.