diff --git a/tests/CTS/requests/search/searchSingleIndex.json b/tests/CTS/requests/search/searchSingleIndex.json index 7551fe4b3f..8828d59638 100644 --- a/tests/CTS/requests/search/searchSingleIndex.json +++ b/tests/CTS/requests/search/searchSingleIndex.json @@ -1012,6 +1012,24 @@ } } }, + { + "testName": "api_filtering_range_example", + "parameters": { + "indexName": "indexName", + "searchParams": { + "query": "books", + "filters": "price:10 TO 20" + } + }, + "request": { + "path": "/1/indexes/indexName/query", + "method": "POST", + "body": { + "query": "books", + "filters": "price:10 TO 20" + } + } + }, { "testName": "search_a_query", "parameters": { diff --git a/tests/CTS/requests/search/setSettings.json b/tests/CTS/requests/search/setSettings.json index 9861e1bad8..51fd08835c 100644 --- a/tests/CTS/requests/search/setSettings.json +++ b/tests/CTS/requests/search/setSettings.json @@ -280,6 +280,72 @@ } } }, + { + "testName": "api_attributes_for_faceting", + "parameters": { + "indexName": "", + "indexSettings": { + "attributesForFaceting": [ + "genre", + "author" + ] + } + }, + "request": { + "path": "/1/indexes/%3CYOUR_INDEX_NAME%3E/settings", + "method": "PUT", + "body": { + "attributesForFaceting": [ + "genre", + "author" + ] + } + } + }, + { + "testName": "api_attributes_for_faceting_searchable", + "parameters": { + "indexName": "", + "indexSettings": { + "attributesForFaceting": [ + "genre", + "searchable(author)" + ] + } + }, + "request": { + "path": "/1/indexes/%3CYOUR_INDEX_NAME%3E/settings", + "method": "PUT", + "body": { + "attributesForFaceting": [ + "genre", + "searchable(author)" + ] + } + } + }, + { + "testName": "api_attributes_for_filter_only", + "parameters": { + "indexName": "", + "indexSettings": { + "attributesForFaceting": [ + "filterOnly(genre)", + "author" + ] + } + }, + "request": { + "path": "/1/indexes/%3CYOUR_INDEX_NAME%3E/settings", + "method": "PUT", + "body": { + "attributesForFaceting": [ + "filterOnly(genre)", + "author" + ] + } + } + }, { "testName": "attributesForFaceting categoryPageId", "parameters": {