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

Fix cross-endpoint querying so they can be combined #23

Open
flaneuse opened this issue Dec 2, 2019 · 0 comments
Open

Fix cross-endpoint querying so they can be combined #23

flaneuse opened this issue Dec 2, 2019 · 0 comments
Labels
backend bug Something isn't working

Comments

@flaneuse
Copy link
Member

flaneuse commented Dec 2, 2019

Currently, if there are multiple cross-endpoint queries, only the second one gets executed. Requires rewriting the query parser to separate and combine queries. At least at first, queries will probably all be AND'd.

Returns 1832 results as of 2 December 2019:
https://data.cvisb.org/api/patient/query?q=__all__&elisa=[[elisa.virus.keyword:Lassa AND elisa.assayType.keyword:Ag AND elisa.ELISAresult.keyword:negative AND elisa.timepoint.keyword:"patient admission"]]

Returns 369 results as of 2 December 2019
https://data.cvisb.org/api/patient/query?q=__all__&experimentQuery=includedInDataset:hla

ERROR: combined query only returns second query:
https://data.cvisb.org/api/patient/query?q=__all__&elisa=[[elisa.virus.keyword:Lassa%20AND%20elisa.assayType.keyword:Ag%20AND%20elisa.ELISAresult.keyword:negative%20AND%20elisa.timepoint.keyword:%22patient%20admission%22]]&experimentQuery=includedInDataset:hla

@flaneuse flaneuse added bug Something isn't working backend labels Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Development

No branches or pull requests

1 participant