AtlasOfLivingAustralia / biocache-service

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

decade/occurrenceYear facet returning inconsistent results #708

Closed djtfmartin closed 6 months ago

djtfmartin commented 3 years ago

@adam-collins commented on Fri May 07 2021

Faceting on decade returns the expected results, one per decade. The result indicates that the correct field to use is now occurrenceYear https://aws-biocache-quoll.ala.org.au/ws/occurrences/search?q=*:*&pageSize=0&facet=true&facets=decade&flimit=-1

However faceting on occurrenceYear returns incorrect results. A ten year span for each year. https://aws-biocache-quoll.ala.org.au/ws/occurrences/search?q=*:*&pageSize=0&facet=true&facets=occurrenceYear&flimit=-1


@adam-collins commented on Fri May 07 2021

production is also wrong

adam-collins commented 10 months ago

Treating decade (int field) and occurrenceYear (date field) as-is. Pull request https://github.com/AtlasOfLivingAustralia/biocache-service/pull/864

peggynewman commented 7 months ago

LGTM