bio-tools / biotoolsRegistry

biotoolsregistry : discovery portal for bioinformatics
GNU General Public License v3.0
70 stars 20 forks source link

Querying with more than one term is not possible #326

Open sduvaud opened 6 years ago

sduvaud commented 6 years ago

Tried to search for "Topic: Model organisms" and wanted to add "Topic: Proteomics" to the search but the first search item was removed.

joncison commented 6 years ago

Yup ... I can confirm this behaviour / bug. cc @piotrgithub1

joncison commented 6 years ago

This is a limitation; I think the ideal behaviour would be to accept >1 topic etc., and interpret these as a logical "AND".

Currently the API (which the front-end calls) is ignoring everything except for the last topic specified, i.e.

https://bio.tools/api/tool?topic=%22Function%20analysis%22&topic=%22Proteins%22 returns hits for topic=="Proteins"

https://bio.tools/api/tool?topic=%22Proteins%22&topic=%22Function%20analysis%22 returns hits for topic=="Function analysis"

joncison commented 6 years ago

NB: for purposes of filtering / faceting, we'd also need to support "OR" functionality

hansioan commented 6 years ago

@sduvaud The solution will most likely be something of the form bio.tools/?topic=Proteins&&Genes for the AND case and bio.tools/?topic=Proteins||Genes for the OR case All of this in due course :)