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

Geoquery filter on group generates exception

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.8.0
    • Component/s: None
    • Labels:
      None
    • ALL

      Triggers a function set_matcher which automatically raises an exception; probably needs to be implemented somewhere.

      db.users.group({
      reduce: function(obj, prev) {
      prev.sums =

      { y_levels: prev.sums.y_levels + obj.current_y_level, x_levels: prev.sums.x_levels + obj.current_x_level, count: prev.sums.count + 1 }

      },
      cond: {current_position: { $near: [56.553823, 8.565619],
      $maxDistance: 10}},
      initial: { sums:

      { y_levels: 0, x_levels: 0, count: 0 }

      }
      });

      produces :

      uncaught exception: group command failed: {
      "errmsg" : "exception: manual matcher config not allowed",
      "code" : 13285,
      "ok" : 0

            Assignee:
            Unassigned Unassigned
            Reporter:
            kbanker Kyle Banker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: