Socket
Socket
Sign inDemoInstall

@algolia/client-search

Package Overview
Dependencies
5
Maintainers
3
Versions
180
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @algolia/client-search


Version published
Weekly downloads
1.5M
increased by0.37%
Maintainers
3
Install size
254 kB
Created
Weekly downloads
 

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.23.3

  • fix(types): add serverTimeMS to search response (#1518) (a1d1707), closes #1518

FAQs

Last updated on 10 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc