AtlasOfLivingAustralia / biocache-service

Occurrence & mapping webservices
https://biocache-ws.ala.org.au/ws/
Other
9 stars 26 forks source link

DQ filters not excluding Material Sample / eDNA records #838

Closed peggynewman closed 8 months ago

peggynewman commented 10 months ago

Re this URL: https://biocache.ala.org.au/occurrences/search?q=data_resource_uid%3Adr23232&disableQualityFilter=record-type&fq=-basisOfRecord%3A%22FOSSIL_SPECIMEN%22&fq=-%28basisOfRecord%3A%22MATERIAL_SAMPLE%22+AND+contentTypes%3A%22EnvironmentalDNA%22%29

This dataset is entirely eDNA records (contentType EnvironmentalDNA), and yet the DQ filters are not filtering them out.

When I click on the "0 excluded records" link

I get this incomplete URL on screen. Is that just an error display problem, or is it that the URL is being truncated somewhere along the line causing eDNA records to not be obfuscated?

Image

Actually, it's only fossils that are being excluded. In this search you can clearly see the only basisOfRecord being excluded is fossils.

adam-collins commented 8 months ago

Filter is wrong -(basisOfRecord:"MATERIAL_SAMPLE" AND contentTypes:"EnvironmentalDNA"). It needs to be -(basisOfRecord:"MATERIAL_SAMPLE" AND contentTypes:"Environmental DNA").

Give it 12 hrs for all caches to clear.

adam-collins commented 8 months ago

Working now in production