FTS ConjunctionQuery Min(int)

Greetings!
I am using CouchbaseNetClient 2.7.16. Any attempt to call full text search ConjunctionQuery.Min(int) causing ArgumentOutOfRangeException: (Parameter ‘min’). Please help to build the query right way.

Thank you,
P.S My firs post :wink:

Hi @skaryshev,

Would you mind posting a little more code so we can see what you’re trying to do? Also, what would you expect ConjectionQuery.Min(integer) to do?

A code to reproduce - it does not make much sense - illustration only:
new DisjunctionQuery
(
new MatchQuery(“location”).Field(“reviews.content”),
new BooleanFieldQuery(true).Field(“free_breakfast”)
).Min(1);
Result:
ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ‘min’)
Couchbase.Search.Queries.Compound.DisjunctionQuery.Min(int)

Ref: https://docs.couchbase.com/server/6.0/fts/fts-query-types.html#disjunction-query-or

I am exploring avenues to bring most relevant results to the top with tight Limit(…) but it is a subject of different topic

@skaryshev,

I think this may be a bug. I’m going to explore further and get back to you as soon as I can.

@skaryshev,

I can reproduce this error even without connecting to the cluster, so I think it’s an error in the .NET SDK. I’ve opened an issue for it here: https://issues.couchbase.com/browse/NCBC-2491 - Thank you for posting about this to the forums!