Open chantzlarge opened 5 months ago
I was able to resolve this by updating the connector filtering options with the Elasticsearch Connector API to use an advanced query. The advanced query used SELECT st_geohash(...)
to change the type from geography(point, ...)
to a geohash before indexing.
Thanks for filing! I'm glad you found a workaround, but I'm going to re-open because I think this is a valuable enhancement request for us to keep track of.
Problem Description
The PostgreSQL connector cannot automatically map the POSTGIS
geography(Point)
type to the ElasticsearchGeopoint
field. This issue prevents efficient use of geospatial data in Elasticsearch, causing frustration in applications that rely on spatial queries.Proposed Solution
Enhance the PostgreSQL connector to automatically detect and map the POSTGIS
geography(Point)
type to Elasticsearch'sGeopoint
field. This feature should be configurable and include custom mapping options for flexibility.Alternatives
Additional Context
Improving this mapping capability would streamline the integration of geospatial data, benefiting applications that depend on spatial analysis and search functionalities.
default index mapping:
\d
output for column: