Issue 18919

wrong faceted API results

Reporter: sant
Type: Bug
Summary: wrong faceted API results
Priority: Unassessed
Status: Reopened
Created: 2017-02-05 18:55:08.383
Updated: 2017-10-06 13:41:34.598
Description: I found faceting issues when trying to request numerical data from our 4 published datasets.

We have an IPT, which serves 4 datasets from 1 institution.

So I would expect the follogin api calls to return the number of occurrences in each one of those 4 datasets.  But it only returns 2 of them:

If I use the term "institutionCode" instead of "publishgOrg", I got the expected results:

But I would prefer to use uuids for these faceting searches, because institution or collection codes are not necessarily unique.

Moreover, for whatever reason the codes worked in that scenario (requesting number of occurrences in each dataset) but do NOT work if I try to get the number of occurences of each ScientificName:
For whatever reason, the first 2 request work but the last 2 requests do not return results.
Again, the 2 problematic datasets are those called "SANT" and "SANT-Bryo", which were not returned in the first urls (requesting faceted occurrence counts of our 4 datasets, using publishingOrg uuid as a parameter).

Author: cgendreau
Comment: An issue with publishgOrg was fixed by this commit:
Created: 2017-02-05 21:14:01.341
Updated: 2017-02-05 21:14:01.341

Author: sant
Created: 2017-02-06 01:27:07.924
Updated: 2017-02-06 01:37:25.425
Thanks Christian.

I must be misunderstanding your comment.
If the issue is fixed, why do I get wrong results?

By the way, another wrong faceting example.
This request returns 2 results, but no ScientificName facets are shown.

If I remove the institutionCode filter, then I get both results and facets.
Why does this happen??


Author: hoefft
Comment: From the examples i tried this seemed to be fixed. Can you confirm [~sant] ?
Created: 2017-10-06 13:41:34.598
Updated: 2017-10-06 13:41:34.598