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

topn query problem - trailing comma #103

Open
ehenneken opened this issue Jul 6, 2020 · 0 comments
Open

topn query problem - trailing comma #103

ehenneken opened this issue Jul 6, 2020 · 0 comments
Assignees
Labels

Comments

@ehenneken
Copy link
Member

The query

topn(5, object:M67, "date desc")

does not return any results. This is because there is no space between object:M67 and the comma that follows it. The query works when you add a space. Without the space, the object_service translates the query into

topn(5, ((=abs:M67, OR simbid:0 OR nedid:0) database:astronomy) "date desc")

which does not work because of =abs:M67,. With a space it becomes

{"query": "topn(5, ((=abs:M67 OR simbid:1136125 OR nedid:MESSIER_067) database:astronomy) , \"date desc\")"}
@ehenneken ehenneken added the bug label Jul 6, 2020
@ehenneken ehenneken self-assigned this Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant