ncats / bard

Sources for the BioAssay Research Database
Other
10 stars 2 forks source link

Searching compounds by multiple filter queries using the same molecular properties field causes SolrException #50

Closed jerilevine closed 11 years ago

jerilevine commented 11 years ago

This request returns a SolrException:

http://bard.nih.gov/api/latest/search/compounds/?q=cat&filter=fq(mwt:%5B100+TO+200%5D),fq(mwt:%5B200+TO+300%5D),&skip=0&top=10&expand=true

I think this only happens for molecular properties such as MW and Tpsa, and it works if you specify only a single query term -- for instance, this works:

http://bard.nih.gov/api/latest/search/compounds/?q=cat&filter=fq(mwt:%5B100+TO+200%5D),&skip=0&top=10&expand=true

rajarshi commented 11 years ago

Fixed in straw

http://bard.nih.gov/api/straw/search/compounds/?q=cat&filter=fq(mwt:%5B100+TO+200%5D),fq(mwt:%5B200+TO+300%5D),&skip=0&top=10&expand=true

jerilevine commented 11 years ago

Thanks, Raj! It does work now in straw.