Regarding the atlas search string facet, I understand that the search index is now indexed as token instead of string facet, but there is something wrong with the query result.
Hi, @amyjian.
It is difficult to directly deliver the results because the questionnaire expresses my example abstractly.
And I’m using it well by indexing the string facet.
However, characteristically, when facet in an index defined only as token, the aggregate figures were significantly less or missing.
For example,
Hi, I noticed in this query the provided path is keywords. Can you confirm that this is the query you ran? I would expect this to fail, as the path should be extractions.keywords. Or, do you happen to have a top-level keywords field as well?
Hey, having similar issues here (mongo 7.0.22). I have a collection with fields created_at (datetime) and keywords (array of str) and atlas search index defined as such:
Something really weird happens, where (if I understand things right) I believe only the token indexing should allow me to count frequencies of the keywords in the arrays of selected documents, however A LOT of the documents are not contributing into the buckets. If the index does not have stringFacet mapping the query as shown above returns proper count (total or lowerbound) for the douments but buckets are either empty or show very low counts. When both mappings are present (token and stringfacet) I get (seemingly) proper counts for the keyword frequencies.
We’re encountering the same issue on our side. Switching from stringFacet to token when using an operator (such as autocomplete) does not return the expected results. I’m happy to provide reproduction steps if that would help with debugging. @amyjian