[COMPASS-644] Add $near support in mongodb-language-model Created: 12/Jan/17  Updated: 10/Jan/24  Resolved: 24/Mar/20

Status: Closed
Project: Compass
Component/s: Grammar, Query Bar
Affects Version/s: None
Fix Version/s: 1.22.0

Type: Bug Priority: Major - P3
Reporter: Ronan Bohan Assignee: Durran Jordan
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Compass 1.5.1


Issue Links:
Problem/Incident
causes COMPASS-4146 Disable validation in agg builder, qu... Closed
Related
Epic Link: COMPASS-3417
Sprint: Iteration Zebra

 Description   

Compass does support $geoWithin queries but when trying (manually) to enter a $near query (see below) a red info point appears linking to the MongoDB Extended JSON docs page and the 'apply' button remains unavailable.

Questions:

  1. Which operators are support and which aren't? Can we get this info added to the online docs perhaps?
  2. What are the timeframes for supporting those operators which are currently not supported?

Sample $near query:

{"metadata.location": { "$near" : { "$geometry": { type: "Point",  coordinates: [ -98.60496194154656, 20.515878780777225 ] }, "$maxDistance": 100000 }  }}



 Comments   
Comment by Justin Costello [ 18/Sep/17 ]

Intercom Request:

https://app.intercom.io/a/apps/p57suhg7/respond/inbox/unassigned/conversations/11850323872

Comment by Thomas Rueckstiess [ 01/May/17 ]

Changing this to a Task, as it is not a bug but a feature request. $near is currently not yet supported.

Comment by Ronan Bohan [ 17/Jan/17 ]

This came up in a discussion with sigfrido.narvaez. He should be in a position to provide info on which customer/prospect was involved, if any.

Comment by Sam Weaver [ 13/Jan/17 ]

thomasr can provide the answer to 1).

for 2) we have the work planned but not scheduled so I can't give you a timeframe right now. Do you have a prospect or account asking for it? If so, a pain ticket and linked opportunity will help move it up the backlog faster. At the moment its a nice to have but we haven't had customer feedback to warrant implementing it over other known requests.

Generated at Wed Feb 07 22:25:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.