@@ -41,6 +41,9 @@ The client provides the following functions.
4141// Search with a specific keyword
4242client .search (' keyword' , callback);
4343
44+ // Match all query
45+ client .search (' *' , callback);
46+
4447// Search with the previously used keyword or execute a "match all" query
4548client .search (callback);
4649```
@@ -60,22 +63,34 @@ client.useFuzzyMatch(false);
6063
6164#### Set JSON Web Token (for authentication)
6265``` js
63- // Add JWT to the HTTPS request (if protected search index)
66+ // Add JWT to the search request (if protected search index)
6467client .setJWT (token);
6568```
6669
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+
6776#### Define language filter
6877``` js
6978// Documents in specific language (e.g. "en" or "de")
7079client .setLanguage (' en' );
7180```
7281
73- #### Define publishing date filters
82+ #### Define publishing date filter
7483``` js
7584// Documents published between specific date range
7685client .setDateFilter (' 2019-01-01' , ' 2019-01-31' );
7786```
7887
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+
7994#### Define category filters
8095Filter by URL patterns, document types or * addsearch-category* meta tag values.
8196See the [ full documentation.] ( https://www.addsearch.com/support/documentation/ranking-relevance-filters/filters/#category-filters )
0 commit comments