tigrisdata-archive / tigris

Tigris is an Open Source Serverless NoSQL Database and Search Platform.

Home Page:https://www.tigrisdata.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable search usage for queries on collections

ovaistariq opened this issue · comments

Once secondary indexes are enabled, we need to have a way to disable search usage.

commented

I looked at removing search from our queries and then ran our test code.
Two tests fail in the documents_test.go file:

TestRead_Sorted

This fails because it expects the response to be sorted based on a non-primary key. Currently, secondary indexes do not support the sort key. We can add sort support to secondary indexes and throw an error if the sort field is not indexed.

TestFilteringOnArrays_Primitives

This fails because we cannot filter into nested fields in Tigris. We need to change our filters to look inside an array and see if the value matches