@@ -41,6 +41,9 @@ The client provides the following functions.
41
41
// Search with a specific keyword
42
42
client .search (' keyword' , callback);
43
43
44
+ // Match all query
45
+ client .search (' *' , callback);
46
+
44
47
// Search with the previously used keyword or execute a "match all" query
45
48
client .search (callback);
46
49
```
@@ -60,22 +63,34 @@ client.useFuzzyMatch(false);
60
63
61
64
#### Set JSON Web Token (for authentication)
62
65
``` js
63
- // Add JWT to the HTTPS request (if protected search index)
66
+ // Add JWT to the search request (if protected search index)
64
67
client .setJWT (token);
65
68
```
66
69
70
+ #### Set user token (for personalized search results)
71
+ ``` js
72
+ // Add a user token to the search request (if personalization in use)
73
+ client .setUserToken (' uuid' );
74
+ ```
75
+
67
76
#### Define language filter
68
77
``` js
69
78
// Documents in specific language (e.g. "en" or "de")
70
79
client .setLanguage (' en' );
71
80
```
72
81
73
- #### Define publishing date filters
82
+ #### Define publishing date filter
74
83
``` js
75
84
// Documents published between specific date range
76
85
client .setDateFilter (' 2019-01-01' , ' 2019-01-31' );
77
86
```
78
87
88
+ #### Define price range filter
89
+ ``` js
90
+ // Products in specific price range (in cents. e.g. 100,00 - 200,00)
91
+ client .setPriceRangeFilter (' 10000' , ' 20000' );
92
+ ```
93
+
79
94
#### Define category filters
80
95
Filter by URL patterns, document types or * addsearch-category* meta tag values.
81
96
See the [ full documentation.] ( https://www.addsearch.com/support/documentation/ranking-relevance-filters/filters/#category-filters )
0 commit comments