Boolean search query with less than 2 disjunction returns ArgumentError but expected is InvalidArgumentException

Description

Failing in server versions: 7.1-stable, 7.2-stable, 7.6-stable

FIT tests 

 

com.couchbase.client.search.SearchTest.booleanQueryMin2FailAssertInvalidArgument

 

are failing due to incorrect exception in result, expecting InvalidArgumentException instead NoChildrenException received when 0 or 1 disjunction is passed in boolean search query

Environment

None

Release Notes Description

None

Activity

Show:

Saurabh Mishra May 28, 2024 at 5:54 AM

Sorry for confusion, this exception is seen in python, in ruby ArgumentError exception is being raised. These tests are failing in Ruby

 

Dimitris Christodoulou May 24, 2024 at 3:36 PM

I was able to reproduce the test failures, and they should be resolved by this PR. However, I wasn't able to get the NoChildrenException. As far as I'm aware this is not an exception type that the Ruby SDK can raise. Did it come from the driver? I wasn't able to see it there either, what I saw was:

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Sprint

Story Points

Priority

Instabug

Open Instabug

Sentry

Zendesk Support

Created May 23, 2024 at 6:21 AM
Updated May 28, 2024 at 11:05 AM
Resolved May 28, 2024 at 11:05 AM
Instabug