pivotql-compiler-elasticsearch

0.4.1 • Public • Published

PivotQL compiler for elasticsearch

Produces elastic search queries from PivoQL ASTs.

Install

npm install pivotql-compiler-elasticsearch

Example

import {parse} from 'pivotql-parser-expression';
import {compile} from 'pivotql-compiler-elasticsearch';

const query = '( height <= 20 or favorites.color == "green" ) and firstname in ["john", "doug"]';

const queryEs = compile(parse(query))

// Use query ES with elasticsearch API

More information

See main repository for more information.

Package Sidebar

Install

npm i pivotql-compiler-elasticsearch

Weekly Downloads

24

Version

0.4.1

License

MIT

Unpacked Size

43.6 kB

Total Files

10

Last publish

Collaborators

  • jrmi