Skip to content

Releases: AddSearch/js-client-library

v0.6.3

30 Sep 07:34
Compare
Choose a tag to compare

Added a function to control the default logical operator in search (and/or): setSearchOperator

v0.6.2

03 Sep 06:49
Compare
Choose a tag to compare

Added a function to control search result cache TTL for server side caching: setCacheResponseTime.

v0.6.1

22 Jun 09:21
Compare
Choose a tag to compare

Fixed a bug with retry type fuzzy matching causing the second API fetch not firing.

v0.6.0

22 Mar 09:39
Compare
Choose a tag to compare

New setting enableLogicalOperators to control if user specified logical operators (and/or/not) should be processed in the search queries like "cat and dog". The default value is false, so logical operators are not processed and the words are treated as literal strings.

Before the release v0.6.0 there hasn't been a setting to control the processing of logical operators. The default behaviour was to process them, so to keep your existing app's behaviour intact, enable the new setting:

client.enableLogicalOperators(true);

v0.5.2

22 Dec 09:56
Compare
Choose a tag to compare

Added a function to set the hostname for API calls. This can be used, for example, with dedicated environments with customer-specific API host.

v0.5.1

25 Nov 10:30
Compare
Choose a tag to compare

Updated dependencies.

v0.5.0

19 Aug 06:26
Compare
Choose a tag to compare

Added functions to use Indexing API to create, update, fetch, and delete single documents or batches of documents. The full indexing API documentation can be found at addsearch.com

Example of indexing a document:

// Define a document (schemaless)
const doc = {
  custom_fields: {
    'name': 'Example product',
    'description': 'Description for the example product',
    'price_cents': 599,
    'average_customer_rating': 4.5
  }
};

// Save the document
client.saveDocument(doc)
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.log(error);
  });

v0.4.3

16 Apr 11:32
Compare
Choose a tag to compare

Added support for field statistics. With this feature, you can add minimum, maximum, and average values of numerical or date-based custom fields to the search response. See documentation

v0.4.2

15 Apr 10:17
Compare
Choose a tag to compare

Added support for range facets. The feature can be used to group numerical custom fields into range buckets. See documentation

v0.4.1

07 Apr 10:17
Compare
Choose a tag to compare

A new function to control if postfix wildcard (i.e. keyword*) is used or not.

client.setPostfixWildcard(false);