-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: 2.23.0, 2.23.1
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
public FacetSearchDefinition(SearchDefinition<TDocument> @operator, IEnumerable<SearchFacet<TDocument>> facets) : base(OperatorType.Facet) { _operator = Ensure.IsNotNull(@operator, nameof(@operator)); _facets = Ensure.IsNotNull(facets, nameof(facets)).ToArray(); }
according to docs the operator is not required (and testing with compass proves desired results)
https://www.mongodb.com/docs/atlas/atlas-search/facet/#syntax
| perator | document | no | Operator to use to perform the facet over. If omitted, Atlas Searchperforms the facet over all documents in the collection. |
My usecase: I just want a count of all documents per status so I can report on the statistics