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
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1212,7 +1212,7 @@ The following **individual filters** are supported:
1212
1212
Example: `inStock > 0`.
1213
1213
1214
1214
-**Range**: `${attributeName}:${lowerBound} TO ${upperBound}` matches all objects where the specified numeric
1215
-
attribute is within the range [`${lowerBound}`, `${upperBound}`] (inclusive on both ends).
1215
+
attribute is within the range [`${lowerBound}`, `${upperBound}`]\(inclusive on both ends).
1216
1216
Example: `publication_date: 1441745506 TO 1441755506`.
1217
1217
1218
1218
-**Facet filter**: `${facetName}:${facetValue}` matches all objects containing exactly the specified value in the specified facet attribute. *Facet matching is case sensitive*. Example: `category:Book`.
@@ -1798,6 +1798,14 @@ This advanced syntax brings two additional features:
1798
1798
1799
1799
List of words that should be considered as optional when found in the query.
1800
1800
1801
+
This parameter can be useful when you want to do an **OR** between all words of the query.
1802
+
To do that you can set optionalWords equals to the search query.
1803
+
1804
+
```js
1805
+
var query ='the query';
1806
+
var params = {'optionalWords': query};
1807
+
```
1808
+
1801
1809
**Note:** You don't need to put commas between words.
1802
1810
Each string will automatically be tokenized into words, all of which will be considered as optional.
1803
1811
@@ -2007,7 +2015,7 @@ Each string represents a filter on a numeric attribute. Two forms are supported:
2007
2015
Example: `inStock > 0`.
2008
2016
2009
2017
-**Range**: `${attributeName}:${lowerBound} TO ${upperBound}` matches all objects where the specified numeric
2010
-
attribute is within the range [`${lowerBound}`, `${upperBound}`] (inclusive on both ends).
2018
+
attribute is within the range [`${lowerBound}`, `${upperBound}`]\(inclusive on both ends).
2011
2019
Example: `price: 0 TO 1000`.
2012
2020
2013
2021
If you specify multiple filters, they are interpreted as a conjunction (AND). If you want to use a disjunction (OR),
0 commit comments