Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1635

Faceting support

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.3.14
    • None
    • Index Maintenance
    • None
    • Query

    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, }

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            rb2k Marc Seeger
            Votes:
            31 Vote for this issue
            Watchers:
            29 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: