Socket
Socket
Sign inDemoInstall

ozone-search-helper

Package Overview
Dependencies
0
Maintainers
8
Versions
113
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ozone-search-helper

[![NPM version][npm-image]][npm-url] # ozone-search-helper


Version published
Maintainers
8
Created

Readme

Source

NPM version

ozone-search-helper

Helper to build ozone-search query

usage

  let searchQuery = new SearchQuery();
  searchQuery.quicksearch('');
  const searchGenerator = itemClient.search(searchQuery.searchRequest);

Search query can be chained. Example:

  let searchQuery = new SearchQuery();
  // ((type == 'aType' or contains 'hello') and 'myField' == 'aText)
  // Order by 'creationDate'
  searchQuery
     .typeQuery('aType')
     .or.quicksearch('hello')
     .and.termQuery('myField','aText')
     .order('creationDate').DESC;

  searchQuery.quicksearch('').and;

  const searchGenerator = itemClient.search(searchQuery.searchRequest);

Example:

  let searchQuery = new SearchQuery();
  // type == 'aType' or contains 'hello' or 'myField' == 'aText'
  searchQuery
     .typeQuery('aType')
     .or
     .quicksearch('hello')
     .termQuery('myField','aText')

  const searchGenerator = itemClient.search(searchQuery.searchRequest);

Install

$ npm install ozone-search-helper

FAQs

Last updated on 17 Sep 2021

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc