[CSHARP-4928] Add support for custom operators to SearchDefinitionBuilder Created: 09/Jan/24 Updated: 18/Jan/24 Resolved: 18/Jan/24 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Atlas Search, Builders |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Fred Morel | Assignee: | Boris Dogadov |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||
| Description |
|
While https://jira.mongodb.org/browse/CSHARP-4927 isn't done (and any future added operators to Atlas Search), it would be helpful to have a "Custom" operator method on SearchDefinitionBuilder that takes
and adds it to the SearchDefinition in the Filter/Must/etc as desired so we don't have to convert our entire query to BsonDocument or a JSON string. It would make later migration to official helpers more easy. |
| Comments |
| Comment by Boris Dogadov [ 18/Jan/24 ] | |||||
|
The requested functionality exists. | |||||
| Comment by Fred Morel [ 17/Jan/24 ] | |||||
|
You can close this as Not Implementing or whatever equivalent this board uses. | |||||
| Comment by Boris Dogadov [ 17/Jan/24 ] | |||||
|
Thanks for the update. You could also use JsonSearchDefinition if needed. | |||||
| Comment by Fred Morel [ 09/Jan/24 ] | |||||
|
Right after I created this ticket, I realized I could do this:
| |||||
| Comment by PM Bot [ 09/Jan/24 ] | |||||
|
Hi fred.morel@onepeloton.com, thank you for reporting this issue! The team will look into it and get back to you soon. |