# ozone-search-helper

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

Latest version **6.5.2** (published 2026-07-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install ozone-search-helper
pnpm add ozone-search-helper
yarn add ozone-search-helper
bun add ozone-search-helper
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 6.5.2 |
| Published | 2026-07-20 |
| First published | 2017-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 37.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hj@taktik |
| Maintainers | aduchate, dani_rocha, simonhardy, om_taktik_com, hubjac1 |

## Links

- npm: https://www.npmjs.com/package/ozone-search-helper
- Repository: https://github.com/taktik/ozone-components/packages/ozone-helper/ozone-search-helper
- npm.io page: https://npm.io/package/ozone-search-helper

## Recent versions

- 6.5.2 (latest) — 2026-07-20
- 6.4.3 — 2025-03-21
- 6.2.4 — 2023-06-09
- 6.1.11 — 2022-10-19
- 6.1.10 — 2022-10-19
- 6.0.3 — 2021-12-17
- 6.0.1 — 2021-10-25
- 6.0.0 — 2021-09-24
- 5.9.2 — 2021-09-17
- 5.9.1 — 2021-09-08
- 5.9.0 — 2021-08-05
- 5.8.0 — 2021-07-13
- 5.7.2 — 2021-07-09
- 5.7.1 — 2021-07-08
- 5.7.0 — 2021-07-08
- … 100 more at https://npm.io/package/ozone-search-helper/versions

## README

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

Helper to build ozone-search query

## usage

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

Search query can be chained.
Example:
```javaScript
  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:
```javaScript
  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
```



[npm-image]: https://badge.fury.io/js/ozone-search-helper.svg
[npm-url]: https://npmjs.org/package/ozone-search-helper

---
_Source: https://npm.io/package/ozone-search-helper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
