searchbx

1.0.5 • Public • Published

SearchBX API Client

Add Custom Search to your Website & help visitors find the right page. Demo Online

Simple Setup

You can add a simple search box to your blog, static site, documentation site, or help desk page without complex codes.

Managed Service

We run the crawlers and search servers for you. You do not need to manage and synchronize with expensive search databases such as Elasticsearch.

Full Text Search

Instead of searching only the page titles, we support searching the whole article, with typo tolerance.

How to use SearchBX API Client

  • Import the library
import SearchbxClient from 'searchbx';
  • Create SearchBX Client
const searchbxClient = new SearchbxClient({
 url: 'YourSiteURL',
 version: 'basic'
});
  • Start searching
searchbxClient.search({
 query: 'foo',
 limit: 20,
 from: 0
}).then((res) => {
 ...
})

Package Sidebar

Install

npm i searchbx

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

3.17 kB

Total Files

4

Last publish

Collaborators

  • searchbx