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

Bugs with encoding multiple levels of geo precision #7369

Closed
wants to merge 1 commit into from
Closed

Bugs with encoding multiple levels of geo precision #7369

wants to merge 1 commit into from

Conversation

markharwood
Copy link
Contributor

  1. One issue reported by a user is due to the truncation of the geohash string. Added YAML test for this scenario
  2. Another suspect piece of code was the “toAutomaton” method that only merged the first of possibly many precisions into the result.

Closes #7368

@@ -34,6 +34,12 @@ setup:
"location":
"type" : "geo"
"precision" : "5km"
"suggest_geo_multi_level":
Copy link
Contributor

Choose a reason for hiding this comment

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

can we have a java test for this instead? The REST test are not here to test functionality :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I started down that route but the Java API looked to be missing the "context" part of the suggest API - I can roll a change for that into this PR if you want.

Copy link
Contributor

Choose a reason for hiding this comment

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

odd isn't ContextSuggestSearchTests using the API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was looking in the wrong place, thanks

1) One issue reported by a user is due to the truncation of the geohash string. Added Junit test for this scenario
2) Another suspect piece of code was the “toAutomaton” method that only merged the first of possibly many precisions into the result.

Closes #7368

Added Java test
@s1monw
Copy link
Contributor

s1monw commented Aug 29, 2014

LGTM

@jpountz jpountz removed the review label Aug 29, 2014
@markharwood
Copy link
Contributor Author

Committed in c0aef4a

@clintongormley clintongormley changed the title Suggest API - bugs with encoding multiple levels of geo precision. Suggesters: Bugs with encoding multiple levels of geo precision Sep 8, 2014
@clintongormley clintongormley added the :Search/Suggesters "Did you mean" and suggestions as you type label Jun 7, 2015
@clintongormley clintongormley changed the title Suggesters: Bugs with encoding multiple levels of geo precision Bugs with encoding multiple levels of geo precision Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggester: No results returned for certain geo precisions
4 participants