Details
-
Bug
-
Resolution: Duplicate
-
Major
-
2.0.2
-
None
-
None
-
1
Description
Trying to convert from v1 to v2 and its not clear from the docs what i need to do in order to successfully get it to work
v1 code
q := query
{Query:"field:value",From: offset,Limit: limit}query := gocb.NewSearchQuery(indexName, q).Limit(limit).Skip(offset)
result, err := bucket.ExecuteSearchQuery(query)
v2 code (from what i could scrap in the source code)
results, err := cluster.SearchQuery(indexName, gocbsearch.NewMatchQuery("field:value"), &gocb.SearchOptions{Limit: limit,Skip: offset})
Attachments
Issue Links
- relates to
-
GOCBC-814 Search is looking for the wrong field name for hits
- Resolved