ncats / bard

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

Issues with filters? #7

Closed jasiedu closed 12 years ago

jasiedu commented 12 years ago

There seem to be a bug with the REST API when three or more filters are applied.

For example:

Start with: http://bard.nih.gov/api/v7/search//assays/?q=%22zinc+ion+binding%22

It returns: "nhit": 342 with the following assay detection method type filters:

"facetName": "detection_method_type", "counts": { "homogeneous time-resolved fluorescence": 1, "fluorescence polarization": 2, "fluorescence intensity": 8, "bioluminescence": 9, "nuclear magnetic resonance spectroscopy": 2 }

Then do: http://bard.nih.gov/api/v7/search//assays/?q=%22zinc+ion+binding%22&filter=fq(detection_method_type:%22homogeneous+time-resolved+fluorescence%22),fq(detection_method_type:%22fluorescence+polarization%22),fq(detection_method_type:%22fluorescence+intensity%22),fq(detection_method_type:%22bioluminescence%22)

And notice that the number of hits is 111, even though the sum of the filters from the earlier query was 20.

rajarshi commented 12 years ago

Resolved in latest