All Projects → bripkens → lucene

bripkens / lucene

Licence: MIT license
Node.js lib to transform: lucene query → syntax tree → lucene query

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to lucene

Foundatio.parsers
A lucene style query parser that is extensible and allows modifying the query.
Stars: ✭ 39 (-36.07%)
Mutual labels:  lucene, peg
lancer
Turn your python code into a hideous mess. Ever heard of Black? This is the opposite.
Stars: ✭ 179 (+193.44%)
Mutual labels:  formatter
lucene
Apache Lucene open-source search software
Stars: ✭ 1,009 (+1554.1%)
Mutual labels:  lucene
Stringy
🉑 Stringy - A PHP string manipulation library with multibyte support, performance optimized
Stars: ✭ 135 (+121.31%)
Mutual labels:  stringify
benchee html
Draw pretty micro benchmarking charts in HTML and allow to export them as png for benchee
Stars: ✭ 50 (-18.03%)
Mutual labels:  formatter
AutoFormatInputWatcher
This repository contains input watcher for auto formatting digits in edit text
Stars: ✭ 15 (-75.41%)
Mutual labels:  formatter
explicit-semantic-analysis
Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovitch
Stars: ✭ 34 (-44.26%)
Mutual labels:  lucene
Fmt.jl
Python-style format strings for Julia
Stars: ✭ 31 (-49.18%)
Mutual labels:  formatter
react-numeric
A react component for formatted number form fields
Stars: ✭ 30 (-50.82%)
Mutual labels:  formatter
atom-perfectionist
Beautify CSS and SCSS
Stars: ✭ 19 (-68.85%)
Mutual labels:  formatter
lupyne
Pythonic search engine based on PyLucene.
Stars: ✭ 61 (+0%)
Mutual labels:  lucene
go-qs
A Go port of Rack's query string parser
Stars: ✭ 96 (+57.38%)
Mutual labels:  querystring
prettier-check
Check that all files match prettier code style.
Stars: ✭ 54 (-11.48%)
Mutual labels:  formatter
imgui
Dear ImGui Addons Branch = plain unmodified dear imgui plus some extra addon.
Stars: ✭ 348 (+470.49%)
Mutual labels:  stringify
yapf-online
google/yapf online demo
Stars: ✭ 23 (-62.3%)
Mutual labels:  formatter
ufmt
Safe, atomic formatting with black and µsort
Stars: ✭ 46 (-24.59%)
Mutual labels:  formatter
yamlfmt
A simple opionated yaml formatter that keeps your comments!
Stars: ✭ 27 (-55.74%)
Mutual labels:  formatter
kuromoji-with-mecab-neologd-buildscript
These scripts to build a Lucene Kuromoji or Atilika Kuromoji with bundled mecab-ipadic-NEologd.
Stars: ✭ 19 (-68.85%)
Mutual labels:  lucene
intl-format
A wrapper library for PHP to format and internationalize values in messages like sprintf
Stars: ✭ 12 (-80.33%)
Mutual labels:  formatter
canonix
Experiment in Nix formatting
Stars: ✭ 18 (-70.49%)
Mutual labels:  formatter

lucene   Build Status Dependency Status Coverage Status npm version

Parse, modify and stringify lucene queries.

Installation | Try It | Usage | Grammar | History


Installation

npm install --save lucene
-or-
yarn add lucene

Usage

const lucene = require('lucene');

const ast = lucene.parse('name:frank OR job:engineer');
console.log(ast);
// {
//   left: {
//     field: 'name',
//     term: 'frank'
//   },
//   operator: 'OR',
//   right: {
//     field: 'job',
//     term: 'engineer'
//   }
// }

console.log(lucene.toString(ast));
// name:frank OR job:engineer

Grammar

The parser is auto-generated from a PEG implementation in JavaScript called PEG.js.

To test the grammar without using the generated parser, or if you want to modify it, try out PEG.js online. This is a handy way to test arbitrary queries and see what the results will be like or debug a problem with the parser for a given piece of data.

History

This project is based on thoward/lucene-query-parser.js and its forks (most notably xomyaq/lucene-queryparser). The project is forked to allow some broader changes to the API surface area, project structure and additional capabilities.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].