You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But for the current search want to retrieve only facet values for `category` and `author`.
1020
+
1021
+
You can specify your attributes coma separated.
1022
+
1023
+
For this example: `"category,author"`.
1013
1024
1014
1025
You can also use JSON string array encoding.
1015
1026
1016
-
For example, `["category","author"]`.
1027
+
For this example: `["category","author"]`.
1028
+
1029
+
**Warnings**
1017
1030
1018
-
Only the attributes that have been added in**attributesForFaceting** index setting can be used in this parameter.
1031
+
- When using [facets](#facets) in a search query, only attributes that have been added in**attributesForFaceting** index setting can be used in this parameter.
1019
1032
You can also use `*` to perform faceting on all attributes specified in `attributesForFaceting`.
1020
1033
If the number of results is important, the count can be approximate,
1021
1034
the attribute `exhaustiveFacetsCount` in the response istrue when the count is exact.
@@ -1097,6 +1110,15 @@ Specify the string that is inserted after the highlighted parts in the query res
1097
1110
String used as an ellipsis indicator when a snippet is truncated.
1098
1111
Defaults to an empty string for all accounts created before 10/2/2016, and to … (UTF-8 U+2026) for accounts created after that date.
1099
1112
1113
+
#### restrictHighlightAndSnippetArrays
1114
+
1115
+
- scope: `settings`, `search`
1116
+
- type: `boolean`
1117
+
-default: `false`
1118
+
1119
+
1120
+
If set to true, restrict arrays in highlights and snippets to items that matched the query at least partially elsereturn all array items in highlights and snippets.
1121
+
1100
1122
### Pagination
1101
1123
1102
1124
#### page
@@ -1408,7 +1430,7 @@ This setting is useful on attributes that contain string that should not be matc
1408
1430
1409
1431
#### disableExactOnAttributes
1410
1432
1411
-
- scope: `settings`
1433
+
- scope: `settings`, `search`
1412
1434
- type: `array of strings`
1413
1435
- default: `[]`
1414
1436
@@ -1528,6 +1550,8 @@ When enabled, the integer array is reordered to reach a better compression ratio
1528
1550
- default: `[]`
1529
1551
1530
1552
1553
+
*This parameter is deprecated. Please use [filters](#filters) instead.*
1554
+
1531
1555
A string that contains the comma separated list of numeric filters you want to apply.
1532
1556
The filter syntax is `attributeName` followed by `operand` followed by `value`.
1533
1557
Supported operands are `<`, `<=`, `=`, `>` and `>=`.
@@ -1552,6 +1576,8 @@ You can also use a string array encoding (for example `numericFilters: ["price>1
1552
1576
- default: `""`
1553
1577
1554
1578
1579
+
*This parameter is deprecated. Please use [filters](#filters) instead.*
1580
+
1555
1581
Filter the query by a set of tags.
1556
1582
1557
1583
You can AND tags by separating them with commas.
@@ -1578,6 +1604,8 @@ For example `{"_tags":["tag1","tag2"]}`.
1578
1604
- default: `""`
1579
1605
1580
1606
1607
+
*This parameter is deprecated. Please use [filters](#filters) instead.*
1608
+
1581
1609
Filter the query with a list of facets. Facets are separated by commas and is encoded as `attributeName:value`.
1582
1610
To OR facets, you must add parentheses.
1583
1611
@@ -1589,9 +1617,9 @@ For example, `[["category:Book","category:Movie"],"author:John%20Doe"]`.
0 commit comments