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

sajari

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sajari

JavaScript SDK for the Sajari search API

  • 0.17.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
298
decreased by-35.78%
Maintainers
3
Weekly downloads
 
Created
Source

Sajari Javascript SDK (Browser only)

npm 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 you go to Creating Website Search Interfaces.

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://doc.esdoc.org/github.com/sajari/sajari-sdk-js/.

License

We use the MIT license

Keywords

FAQs

Package last updated on 26 Jul 2017

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