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

modify $near syntax to allow additional parameters easily

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Geo
    • None
    • Query Execution

    Description

      currently our $near syntax : { loc :

      { $near : [0,0], $maxDistance : 3 }

      } forces us to add each $near parameter to the general parsing logic - should really be like $within:

      find({ loc : { $near :

      { $center : [[0, 0], 3] }

      })

      This will let us add $uniqueDocs more easily to $near : so:

      find({ loc : { $near :

      { $center : [[0, 0], 3], $uniqueDocs : true }

      })

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: