Socket
Socket
Sign inDemoInstall

sajari

Package Overview
Dependencies
54
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sajari

JavaScript SDK for the Sajari search API


Version published
Weekly downloads
228
increased by52%
Maintainers
3
Install size
3.58 MB
Created
Weekly downloads
 

Readme

Source

Sajari Javascript SDK (Browser only) · npm build status docs license

The Sajari Javascript SDK provides a basic API for querying Sajari search services from web browsers.

If you are want to create a search UI for your website then checkout our React SDK or generate a search interface from our Console.

Table of Contents

Install

npm install --save sajari

Getting Started

A quick search example using the website search pipeline.

import { Client, Tracking } from "sajari";

const client = new Client("<project>", "<collection>");

const tracking = new Tracking();
tracking.clickTokens("url");

client.searchPipeline(
  "website",
  { q: "Foo Bar", resultsPerPage: "10" },
  tracking,
  (err, res) => {
    console.log(err || res);
  }
);

The Client object handles making requests and callbacks.

Documentation

Full documentation can be found at https://sajari.github.io/sajari-sdk-js/.

License

We use the MIT license

Keywords

FAQs

Last updated on 06 Dec 2017

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