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
@@ -367,7 +367,7 @@ The server response will look like:
367
367
368
368
-`query` (string): An echo of the query text. See the [`query`](#query) search parameter.
369
369
370
-
-`queryAfterRemoval` (string, optional): *Note: Only returned when [`removeWordsIfNoResults`](#removewordsifnoresults) is set.* A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. The removed parts are surrounded by `<em>` tags.
370
+
-`queryAfterRemoval` (string, optional): *Note: Only returned when [`removeWordsIfNoResults`](#removewordsifnoresults) is set to `lastWords` or `firstWords`.* A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set. The removed parts are surrounded by `<em>` tags.
371
371
372
372
-`params` (string, URL-encoded): An echo of all search parameters.
373
373
@@ -491,6 +491,7 @@ Parameters that can also be used in a setSettings also have the `indexing` [scop
@@ -1062,11 +1064,12 @@ The instant search query string, used to set the string you want to search in yo
1062
1064
1063
1065
### Attributes
1064
1066
1065
-
#### attributesToIndex
1067
+
#### searchableAttributes
1066
1068
1067
1069
- scope: `settings`
1068
1070
- type: `array of strings`
1069
1071
- default: `*`
1072
+
- formerly known as: `attributesToIndex`
1070
1073
1071
1074
1072
1075
The list of attributes you want index (i.e. to make searchable).
@@ -1078,7 +1081,7 @@ This parameter has two important uses:
1078
1081
1079
1082
1. **Limit the attributes to index.** For example, if you store the URL of a picture, you want to store it and be able to retrieve it, but you probably don't want to search in the URL.
1080
1083
1081
-
2. **Control part of the ranking.** The contents of the `attributesToIndex` parameter impacts ranking in two complementary ways:
1084
+
2. **Control part of the ranking.** The contents of the `searchableAttributes` parameter impacts ranking in two complementary ways:
1082
1085
1083
1086
First, the order in which attributes are listed defines their ranking priority: matches in attributes at the beginning of the list will be considered more important than matches in attributes further down the list. To assign the same priority to several attributes, pass them within the same string, separated by commas. For example, by specifying `["title,"alternative_title", "text"]`, `title` and `alternative_title` will have the same priority, but a higher priority than `text`.
1084
1087
@@ -1133,13 +1136,13 @@ You can also use `*` to retrieve all values when an **attributesToRetrieve** set
1133
1136
1134
1137
- scope: `search`
1135
1138
- type: `array of strings`
1136
-
-default: `attributesToIndex`
1139
+
-default: `searchableAttributes`
1137
1140
1138
1141
1139
-
List of attributes you want to use for textual search (must be a subset of the `attributesToIndex` index setting).
1142
+
List of attributes you want to use for textual search (must be a subset of the `searchableAttributes` index setting).
1140
1143
Attributes are separated with a comma such as `"name,address"`.
1141
1144
You can also use JSON string array encoding such as `encodeURIComponent("[\"name\",\"address\"]")`.
1142
-
By default, all attributes specified in the `attributesToIndex` settings are used to search.
1145
+
By default, all attributes specified in the `searchableAttributes` settings are used to search.
1143
1146
1144
1147
1145
1148
### Ranking
@@ -1159,7 +1162,7 @@ We have nine available criterion:
1159
1162
* `geo`: Sort according to decreasing distance when performing a geo location based search.
1160
1163
* `words`: Sort according to the number of query words matched by decreasing order. This parameter is useful when you use the `optionalWords` query parameter to have results with the most matched words first.
1161
1164
* `proximity`: Sort according to the proximity of the query words in hits.
1162
-
* `attribute`: Sort according to the order of attributes defined by attributesToIndex.
1165
+
* `attribute`: Sort according to the order of attributes defined by searchableAttributes.
1163
1166
* `exact`:
1164
1167
* If the user query contains one word: sort objects having an attribute that is exactly the query word before others. For example, if you search for the TV show "V", you want to find it with the "V" query and avoid getting all popular TV shows starting by the letter V before it.
1165
1168
* If the user query contains multiple words: sort according to the number of words that matched exactly (not as a prefix).
@@ -1187,11 +1190,12 @@ For example, `"customRanking" => ["desc(population)", "asc(name)"]`.
1187
1190
To get a full description of how the Custom Ranking works,
1188
1191
you can have a look at our [Ranking guide](https://www.algolia.com/doc/guides/relevance/ranking).
1189
1192
1190
-
#### slaves
1193
+
#### replicas
1191
1194
1192
1195
- scope: `settings`
1193
1196
- type: `array of strings`
1194
1197
-default: `[]`
1198
+
- formerly known as: `slaves`
1195
1199
1196
1200
1197
1201
The list of indices on which you want to replicate all write operations.
@@ -1202,7 +1206,7 @@ If you want to use different ranking configurations depending of the use case,
1202
1206
you need to create one index per ranking configuration.
1203
1207
1204
1208
This option enables you to perform write operations only on this index and automatically
1205
-
update slave indices with the same operations.
1209
+
update replica indices with the same operations.
1206
1210
1207
1211
### Filtering / Faceting
1208
1212
@@ -1474,7 +1478,7 @@ If set to true, plural won't be considered as a typo. For example, car and cars,
1474
1478
1475
1479
1476
1480
List of attributes on which you want to disable typo tolerance
1477
-
(must be a subset of the `attributesToIndex` index setting).
1481
+
(must be a subset of the `searchableAttributes` index setting).
1478
1482
1479
1483
Attributes are separated with a comma such as `"name,address"`.
1480
1484
You can also use JSON string array encoding such as `encodeURIComponent("[\"name\",\"address\"]")`.
@@ -1732,7 +1736,7 @@ For most use cases, it is better to not use this feature as people search by key
1732
1736
1733
1737
1734
1738
List of attributes on which you want to disable prefix matching
1735
-
(must be a subset of the `attributesToIndex` index setting).
1739
+
(must be a subset of the `searchableAttributes` index setting).
1736
1740
1737
1741
This setting is useful on attributes that contain string that should not be matched as a prefix
1738
1742
(for example a product SKU).
@@ -1746,7 +1750,7 @@ This setting is useful on attributes that contain string that should not be matc
1746
1750
1747
1751
1748
1752
List of attributes on which you want to disable the computation of `exact` criteria
1749
-
(must be a subset of the `attributesToIndex` index setting).
1753
+
(must be a subset of the `searchableAttributes` index setting).
1750
1754
1751
1755
#### exactOnSingleWordQuery
1752
1756
@@ -1826,11 +1830,12 @@ you can have a look at our [guide on distinct](https://www.algolia.com/doc/searc
1826
1830
If set to true,
1827
1831
the result hits will contain ranking information in the **_rankingInfo** attribute.
1828
1832
1829
-
#### numericAttributesToIndex
1833
+
#### numericAttributesForFiltering
1830
1834
1831
1835
- scope: `settings`
1832
1836
- type: `array of strings`
1833
1837
- default: ``
1838
+
- formerly known as: `numericAttributesToIndex`
1834
1839
1835
1840
1836
1841
All numerical attributes are automatically indexed as numerical filters
@@ -2023,6 +2028,25 @@ Considering the query *“javascript framework”*, if you set `minProximity=2`,
2023
2028
2024
2029
**Note:** the maximum `minProximity` that can be set is 7. Any higher value will disable the `proximity` criterion from the ranking formula.
2025
2030
2031
+
#### responseFields
2032
+
2033
+
- scope: `search`, `settings`
2034
+
- type: `array of strings`
2035
+
- default: `*`
2036
+
2037
+
2038
+
Choose which fields the response will contain. Applies to search and browse queries.
2039
+
2040
+
By default, all fields are returned. If this parameter is specified, only the fields explicitly listed will be returned, unless `*` is used, in which case all fields are returned. Specifying an empty list or unknown field names is an error.
2041
+
2042
+
This parameter is mainly intended to limit the response size. For example, for complex queries, echoing of request parameters in the response's `params` field can be undesirable.
2043
+
2044
+
Some fields cannot be filtered out:
2045
+
2046
+
- warning `message`
2047
+
- `cursor` in browse queries
2048
+
- fields triggered explicitly via [getRankingInfo](#getrankinginfo)
0 commit comments