Newbie Paintball Master

    elucene

    0.3.2 • Public • Published

    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

    Install

    npm i elucene

    DownloadsWeekly Downloads

    24

    Version

    0.3.2

    License

    mit

    Last publish

    Collaborators

    • tjholowaychuk