Skip to content

Commit

Permalink
GOCBC-1588: Fix failing conjunction and disjunction queries
Browse files Browse the repository at this point in the history
Motivation
----------
Currently when used against Stellar Gateway gocb returns invalid query option specified for valid Conjunction and Disjunction queries.

Changes
-------
Corrected the parsing of the nested query arrays.

Change-Id: I777f69fdcaac1a694f86262b262386fcf55acb25
Reviewed-on: https://review.couchbase.org/c/gocb/+/203660
Reviewed-by: Charles Dixon <chvckd@gmail.com>
Tested-by: Jack Westwood <jack.westwood@couchbase.com>
  • Loading branch information
Westwooo committed Jan 15, 2024
1 parent 4a9c245 commit 2e22455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (i Internal) mapDateRangeFacetToPs(dateRanges []dateFacetRange) []*search_v
}

// helper function for handling conjunct/disjunct which consist of multiple queries.
func (i Internal) mapQueriesToPs(queries ...Query) ([]*search_v1.Query, error) {
func (i Internal) mapQueriesToPs(queries []Query) ([]*search_v1.Query, error) {
out := make([]*search_v1.Query, len(queries))
var err error
for index, query := range queries {
Expand Down

0 comments on commit 2e22455

Please sign in to comment.