Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6889

Confusing error in Aggregation pipeline

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Aggregation pipeline
    • Environment:
      OS: Mac
      node.js / npm versions:
      Compass version: Version 1.37.0 (1.37.0)
      Also Atlas Data Explorer
    • 3

      Problem Statement/Rationale

      When a placeholder code into aggregation pipeline is inserted as part of Atlas Search templates in Search Tester workflow , a confusing error is displayed: 


      It's not clear what is experimental syntax that Compass/Atlas is complaining about 

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      create default search index on a database, copy paste code in Aggregation pipeline: 


      $searchMeta: {
      index: "default",
      facet: {
      facets: {
      facet_name: { type: "string", path: "<field-path>", numBuckets: <integer>, },

      Expected Results

      Expected error to tell me to enter an integer

      Actual Results

      What do you observe is happening?

      Confusing error about experimental syntax

      Additional Notes

      Any additional information that may be useful to include.

            Unassigned Unassigned
            ksenia.samokhvalova@mongodb.com Ksenia Samokhvalova
            0 Vote for this issue
            3 Start watching this issue