Uploaded image for project: 'Spring Data Elasticsearch'
  1. Spring Data Elasticsearch
  2. DATAES-930

Add support for geo_shape type entity properties

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Complete
    • None
    • 4.1 RC2 (2020.0.0)
    • Mapping
    • None

    Description

      We should introduce geo types that can be used as properties of type geo_shape

      There are two implementations we could use/adapt. The first is from hefay's PR (https://github.com/spring-projects/spring-data-elasticsearch/pull/186), the GeoShape... classes. The second comes from the spring-data-mongodb project (https://github.com/spring-projects/spring-data-mongodb/tree/master/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/geo), here the GeoJson... classes.

      I think that the GeoJson classes from spring-data-mongodb are easier to integrate, because the can be processed with the MappingElastcisearchConverter, whereas the GeoShape classes would need to be adapted as they were built to be converted by a Jackson module (which we do not use anymore in Spring Data Elasticsearch)

      Attachments

        Issue Links

          Activity

            People

              sothawo sothawo
              sothawo sothawo
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: