Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@algolia/client-search

Package Overview
Dependencies
Maintainers
3
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/client-search

JavaScript client for client-search

  • 5.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
773K
decreased by-63.87%
Maintainers
3
Weekly downloads
 
Created

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

FAQs

Package last updated on 25 Sep 2024

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc