[SERVER-1635] Faceting support Created: 16/Aug/10  Updated: 06/Dec/22  Resolved: 21/Sep/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 3.3.14

Type: New Feature Priority: Minor - P4
Reporter: Marc Seeger Assignee: Backlog - Query Team (Inactive)
Resolution: Done Votes: 31
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-380 basic text indexing and search Closed
Related
related to SERVER-23815 Add $bucket aggregation stage Closed
related to SERVER-23816 Add $sortByCount aggregation stage Closed
Assigned Teams:
Query
Participants:

 Description   
Issue Status as of Sep 20, 2016

As of version 3.3.13, MongoDB supports faceting via several new aggregation stages:

Preview documentation can be found via our Release Notes for Development Series 3.3.x.

Original Description.

It would be nice if mongoDB offered facetting over values.
E.g. an easy way to find out which values exist for a certain field
It could look like this:
db.my_collection.facet(

{"country":1}

)
-->

{"Germany":12,"USA":9, "France": 5, }

 Comments   
Comment by Alex Brown [ 22/Mar/11 ]

i would also find this VERY useful
+1 from me

Generated at Thu Feb 08 02:57:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.