Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch geo location type addition #16880

Merged
merged 7 commits into from
Oct 17, 2024

Conversation

PBMikeW
Copy link
Contributor

@PBMikeW PBMikeW commented Oct 14, 2024

Add switch statement and dynamic template for GeoPoint -> geo_point. Uses search pattern of *.Location as GeoPointFieldIndexHandler forces an index as "Location"

Mapping:
"dynamic_templates": [ { "*.Location": { "path_match": "*.Location", "match_mapping_type": "object", "mapping": { "type": "geo_point" } } } ],

Query:
{ "query": { "bool": { "must": [ { "geo_bounding_box": { "ContentTypeName.Location": { "top_left": { "lat": -34.0, "lon": 166.0 }, "bottom_right": { "lat": -40.0, "lon": 179.0 } } } } ] } } }

@PBMikeW
Copy link
Contributor Author

PBMikeW commented Oct 14, 2024

@Skrypt

@Skrypt
Copy link
Contributor

Skrypt commented Oct 15, 2024

Will review

Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
@PBMikeW PBMikeW requested a review from hishamco October 17, 2024 19:05
@hishamco hishamco enabled auto-merge (squash) October 17, 2024 21:53
@hishamco hishamco disabled auto-merge October 17, 2024 21:54
@hishamco hishamco enabled auto-merge (squash) October 17, 2024 21:59
@hishamco hishamco disabled auto-merge October 17, 2024 22:00
@hishamco hishamco enabled auto-merge (squash) October 17, 2024 22:00
@hishamco hishamco merged commit b9bbef1 into OrchardCMS:main Oct 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants