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

Post Search docs mentions seemingly non-functional has_location parameter #356

Closed
rrbrambley opened this issue Oct 20, 2013 · 6 comments
Closed

Comments

@rrbrambley
Copy link
Contributor

From the docs:

has_location Optional int (0 or 1) Only include posts containing geo coordinates, i.e., tagged with the net.app.core.location annotation

I've tried a bunch of queries with this parameter and I can never get any posts to be returned. Furthermore, I cannot find any documentation on the net.app.core.location annotation.

I was guessing that this might have been a typo and that the param is actually has_geolocation, but that doesn't seem to work either. So perhaps your server recognizes has_location, and then literally does look for that net.app.core.location annotation, which always yields 0 results because no such annotation exists on any posts?

@cdn
Copy link

cdn commented Oct 20, 2013

Isn’t the annotation actually geolocation? docs

@rrbrambley
Copy link
Contributor Author

@cdn that is an annotation, and that's exactly what I was alluding to – they might not be returning search results for the correct annotation.

@mdornseif
Copy link
Contributor

As a workaround /stream/0/posts/search?include_annotations=1&annotation_types=net.app.core.geolocation works while /stream/0/posts/search?include_annotations=1&has_location=1 fails by returning no posts at all.

@mxml-barmstrong
Copy link
Member

Thanks for pointing this one out. We've rolled out a fix for it.

@rrbrambley
Copy link
Contributor Author

@mxml-barmstrong The docs still reference a net.app.core.location annotation.

@mxml-barmstrong
Copy link
Member

Oh, oops, that is supposed to say net.app.core.geolocation.

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

No branches or pull requests

4 participants