Socket
Socket
Sign inDemoInstall

@algolia/client-search

Package Overview
Dependencies
Maintainers
3
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/client-search


Version published
Weekly downloads
1.7M
increased by15.85%
Maintainers
3
Weekly downloads
 
Created

Package description

What is @algolia/client-search?

The @algolia/client-search npm package is designed to facilitate seamless integration with Algolia's search API, enabling developers to easily implement search functionality within their applications. It provides a comprehensive set of features for indexing and querying searchable data, managing indices, and configuring search parameters for optimized search experiences.

What are @algolia/client-search's main functionalities?

Search in an index

This feature allows you to perform a search query on a specific index. The search results are returned as 'hits'.

{"searchIndex.search('query').then(({ hits }) => console.log(hits));"}

Save objects to an index

This feature enables you to save objects to an index, which can then be searched. Objects must have an 'objectID' or it can be auto-generated.

{"index.saveObjects([{ objectID: '1', name: 'John Doe' }], { autoGenerateObjectIDIfNotExist: true }).then(({ objectIDs }) => console.log(objectIDs));"}

Configure index settings

This feature allows you to configure various settings for an index, such as defining which attributes are searchable.

{"index.setSettings({ searchableAttributes: ['name', 'email'] }).then(() => console.log('Settings updated'));"}

Other packages similar to @algolia/client-search

Changelog

Source

v4.17.0

  • feat: update ab test typing (#1455) (f53c72c), closes #1455
  • feat(fetch): remove mode option to rely on library's default (#1452) (67293e1), closes #1452
  • feat(neural): make eventSources nullable (#1453) (eacfca2), closes #1453

FAQs

Package last updated on 03 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc