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

Projection by a substring match

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:

      Description

      Let's start from an example: suppose that each document in a collection contains a UserAgent string as a field. Androids have something like "xxxxxx Android xxxx", iOS have something like "xxxxxxx iPad/iPhone xxxxxx".

      I would like to count those documents, grouped by platform (Android, iPad, iPhone). To get the platform, all I need is to count them by a substring match. For example, /Android/ vs /iPad/ vs /iPhone/ (each counted separately).

      Any solution with aggregation framework will make it for me. I can clarify/whirpool on any request with pleasure.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team
              Reporter:
              breakphreak BreakPhreak
              Participants:
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: