Socket
Book a DemoInstallSign in
Socket

elucene

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elucene

extended lucene query syntax with sorting, field selection, limits etc

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

elucene

Extended Lucene query syntax adding LIMIT, FIELDS, and SORT.

Installation

$ npm install elucene

Example

var parse = require('elucene');
var query = 'level:error SORT timestamp:asc LIMIT 2 5 FIELDS message code';
var ret = parse(query);

yields:

{
  string: 'level:error',
  sort: ['timestamp:asc'],
  limit: ['2', '5'],
  fields: ['message', 'code']
}

License

MIT

Keywords

lucene

FAQs

Package last updated on 25 Feb 2014

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