mongodb-labs / mongo-csharp-search

C# driver extension providing support for Atlas Search
Apache License 2.0
17 stars 1 forks source link

Range operator with compound #17

Closed ghendo closed 1 year ago

ghendo commented 1 year ago

I cant seem to add a Range operator with a compound operator Current search var pipelineSearch1 = new EmptyPipelineDefinition<EmailMessagePreciseEntity>(); var pipelineData = pipelineSearch1 .Search(SearchBuilders<EmailMessagePreciseEntity>.Search .Compound() .Must(nearFilter) .Filter(matches) .Should(searches) .MinimumShouldMatch(minShouldMatch) , null, "PreciseEmailEntity", countOptions, false ) .Facet(fac2, fac3) ;

Tried in the compound and before compound but neither works

dgolub commented 1 year ago

Atlas Search functionality based on this extension was recently incorporated into version 2.19 of the C# driver. Hence, if you upgrade your driver, this extension is no longer needed. You can try upgrading and see if the problem persists. If it does, it would be best to file a bug report in the CSHARP project on MongoDB JIRA.