UPDATE 2
It appears the root cause is the Algolia engine creates facets based the case type of the first record. Subsequent records appear to be case-normalized.
Thus, the reason UPPERCASE "CITY OF DOTHAN" appears as Title Case "City of Dothan" in facets for the Wiregrass Foundation profile is because the facet was created using another foundation's donation to Title Case "City of Dothan".
UPDATE 3: Full discussion: https://github.com/algolia/instantsearch.js/issues/3999
Some facets appear as TitleCase in Algolia dashboard, but appear as UPPERCASE in index.
Results in errors when refining certain facets.
To reproduce:
CITY OF DOTHAN
in hits tableCan also reproduce in Algolia Dashboard.
So far, have noticed for the following in the following facets:: Facet:
grantee_name
CITY OF DOTHAN
WIREGRASS MUSEUM OF ART
Curiously, there's only one instance in
grant_purpose
:CORE PROGRAM
The MongoDB document shows UPPERCASE as expected
UPDATE 2 It appears the root cause is the Algolia engine creates facets based the case type of the first record. Subsequent records appear to be case-normalized.
Thus, the reason UPPERCASE "CITY OF DOTHAN" appears as Title Case "City of Dothan" in facets for the Wiregrass Foundation profile is because the facet was created using another foundation's donation to Title Case "City of Dothan".
UPDATE Possibly related to Algolia using UCS-2 encoding
Further research