Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-5430

Add array field support for In and Range search operators in SearchDefinitionBuilders

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 3.2.0
    • Affects Version/s: None
    • Component/s: Atlas Search
    • None
    • Dotnet Drivers
    • Not Needed

      Some search operators like equals or in support querying on array fields. Users can use this feature if they use the overloads of our SearchDefinitionBuilders where they can pass in strings for the field names. We should also add overloads for using expressions with array properties in our SearchDefinitionBuilders. This will allow users to do this

      Builders<A>.Search.Equals(x => x.IntArray, 1) 
      Builders<A>.Search.In(x => x.StringArray, new[] {"a", "b"}) 

            Assignee:
            adelin.mbidaowona@mongodb.com Adelin Mbida Owona
            Reporter:
            adelin.mbidaowona@mongodb.com Adelin Mbida Owona
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: