Skip to content
Compare
Choose a tag to compare
  • Add a new search query's parameter for fetching hierarchical facets.
  • Instruction for using Analytics Tagging.
Compare
Choose a tag to compare

The contents of the filtering object were not properly URL encoded causing filter criteria with some special characters such as ampersand to not work properly. Fixed.

Compare
Choose a tag to compare

Enhanced internal API fetch function to support upcoming faceting improvements in the Search UI library.

Compare
Choose a tag to compare

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

Compare
Choose a tag to compare

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

Compare
Choose a tag to compare

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

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);
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.

Compare
Choose a tag to compare
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);
  });