Skip to content

Commit

Permalink
some more
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jan 29, 2025
1 parent 168bdfc commit deea2cd
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/CTS/requests/search/searchSingleIndex.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
66 changes: 66 additions & 0 deletions tests/CTS/requests/search/setSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,72 @@
}
}
},
{
"testName": "api_attributes_for_faceting",
"parameters": {
"indexName": "<YOUR_INDEX_NAME>",
"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": "<YOUR_INDEX_NAME>",
"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": "<YOUR_INDEX_NAME>",
"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": {
Expand Down

0 comments on commit deea2cd

Please sign in to comment.