Skip to content

Conversation

@nknize
Copy link
Contributor

@nknize nknize commented Dec 17, 2018

This PR exposes lucene's LatLonShape field as the default type in GeoShapeFieldMapper. To use the new indexing approach, simply set "type" : "geo_shape" in the mappings without setting any of the strategy, precision, tree_levels, or distance_error_pct parameters. Note the following when using the new indexing approach:

  • geo_shape query does not support querying by MULTIPOINT.
  • LINESTRING and MULTILINESTRING queries do not yet support WITHIN relation. This will be added in the future as a buffered_query.
  • CONTAINS relation is not yet supported.
  • The tree, precision, tree_levels, distance_error_pct, and points_only parameters are deprecated.
  • This PR will be backported to 6.6 (with deprecation logging included) and a separate parameter removal PR will be opened for 7.0.

All other geo_shape features are supported.

relates #35320

…t `geo_shape` indexing approach (elastic#35320)

This commit  exposes lucene's LatLonShape field as the
default type in GeoShapeFieldMapper. To use the new
indexing approach, simply set "type" : "geo_shape" in
the mappings without setting any of the strategy, precision,
tree_levels, or distance_error_pct parameters. Note the
following when using the new indexing approach:

* geo_shape query does not support querying by
MULTIPOINT.
* LINESTRING and MULTILINESTRING queries do not
yet support WITHIN relation.
* CONTAINS relation is not yet supported.
The tree, precision, tree_levels, distance_error_pct,
and points_only parameters are deprecated.
@nknize nknize added >feature :Analytics/Geo Indexing, search aggregations of geo points and shapes :Search Foundations/Mapping Index mappings, including merging and defining field types v6.6.0 labels Dec 17, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo

@nknize nknize requested review from imotov, iverase and jpountz December 17, 2018 23:02
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@nknize
Copy link
Contributor Author

nknize commented Dec 17, 2018

backport to 6.6 for PR #35320 /cc @jpountz

@nknize
Copy link
Contributor Author

nknize commented Dec 17, 2018

Note that this is mostly for CI testing. Not much has changed (w/ the exception of differences in some of the overridden mapping methods)

@nknize
Copy link
Contributor Author

nknize commented Dec 18, 2018

retest this please

1 similar comment
@nknize
Copy link
Contributor Author

nknize commented Dec 18, 2018

retest this please

@nknize
Copy link
Contributor Author

nknize commented Dec 18, 2018

retest this please

Copy link
Contributor

@iverase iverase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

…tic#36794)

Lucene 7.6 uses a smaller encoding for LatLonShape. This commit forks the LatLonShape classes to Elasticsearch's local lucene package. These classes will be removed on the release of Lucene 7.6.
@nknize
Copy link
Contributor Author

nknize commented Dec 19, 2018

Looks like we have some more forbidden api failures similar to #36794 This is not an area of strength for me. Any thoughts @atorok? /cc @jpountz @imotov

@iverase
Copy link
Contributor

iverase commented Dec 19, 2018

Note #36834, tags from the forked classes should be removed.

@jasontedor jasontedor added v6.7.0 and removed v6.6.0 labels Dec 19, 2018
@nknize nknize added the v6.6.0 label Dec 19, 2018
@nknize nknize merged commit dc44261 into elastic:6.x Dec 19, 2018
Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the following when using the new indexing approach

Sorry, I am a minute too late to submit the review, but I will still ask just for clarification. If a user periodically creates indices using a templates that is using default tree type and any of the functionality that has been changed the first index that they auto create after the upgrade will break their app without a warning?

nknize added a commit to nknize/elasticsearch that referenced this pull request Dec 19, 2018
…t `geo_shape` indexing approach (elastic#36743)

This commit  exposes lucene's LatLonShape field as the
default type in GeoShapeFieldMapper. To use the new
indexing approach, simply set "type" : "geo_shape" in
the mappings without setting any of the strategy, precision,
tree_levels, or distance_error_pct parameters. Note the
following when using the new indexing approach:

* geo_shape query does not support querying by
MULTIPOINT.
* LINESTRING and MULTILINESTRING queries do not
yet support WITHIN relation.
* CONTAINS relation is not yet supported.
The tree, precision, tree_levels, distance_error_pct,
and points_only parameters are deprecated.
@danielmitterdorfer danielmitterdorfer removed :Analytics/Geo Indexing, search aggregations of geo points and shapes v6.7.0 labels Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker >feature :Search Foundations/Mapping Index mappings, including merging and defining field types v6.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants