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

@algolia/client-search

Package Overview
Dependencies
Maintainers
60
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/client-search

  • 4.6.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1M
decreased by-9.75%
Maintainers
60
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 02 Nov 2020

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