{"id":13451843,"url":"https://github.com/bripkens/lucene","last_synced_at":"2025-05-16T03:06:13.533Z","repository":{"id":15574222,"uuid":"78409086","full_name":"bripkens/lucene","owner":"bripkens","description":"Node.js lib to transform: lucene query → syntax tree → lucene query","archived":false,"fork":false,"pushed_at":"2025-02-19T14:52:24.000Z","size":459,"stargazers_count":75,"open_issues_count":9,"forks_count":33,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-11T07:02:37.763Z","etag":null,"topics":["formatter","grammar","lucene","parser","peg","querystring","stringify"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bripkens.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-09T08:30:06.000Z","updated_at":"2025-01-13T19:34:53.000Z","dependencies_parsed_at":"2024-10-09T19:41:32.002Z","dependency_job_id":"cac4cc2f-fb27-436a-97d8-8819df16422d","html_url":"https://github.com/bripkens/lucene","commit_stats":{"total_commits":116,"total_committers":19,"mean_commits":6.105263157894737,"dds":0.5775862068965517,"last_synced_commit":"fee9364efcea46034b59b364ee1ea99696811533"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Flucene","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Flucene/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Flucene/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Flucene/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bripkens","download_url":"https://codeload.github.com/bripkens/lucene/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formatter","grammar","lucene","parser","peg","querystring","stringify"],"created_at":"2024-07-31T07:01:04.431Z","updated_at":"2025-05-16T03:06:08.522Z","avatar_url":"https://github.com/bripkens.png","language":"JavaScript","readme":"# lucene \u0026nbsp; [![Build Status](https://travis-ci.org/bripkens/lucene.svg?branch=master)](https://travis-ci.org/bripkens/lucene) [![Coverage Status](https://img.shields.io/coveralls/bripkens/lucene.svg)](https://coveralls.io/r/bripkens/lucene?branch=master) [![npm version](https://badge.fury.io/js/lucene.svg)](https://badge.fury.io/js/lucene)\n\nParse, modify and stringify lucene queries.\n\n**[Installation](#installation) |**\n**[Try It](https://runkit.com/npm/lucene) |**\n**[Usage](#usage) |**\n**[Grammar](#grammar) |**\n**[History](#history)**\n\n---\n\n## Installation\n\n```\nnpm install --save lucene\n-or-\nyarn add lucene\n```\n\n## Usage\n\n```javascript\nconst lucene = require('lucene');\n\nconst ast = lucene.parse('name:frank OR job:engineer');\nconsole.log(ast);\n// {\n//   left: {\n//     field: 'name',\n//     term: 'frank'\n//   },\n//   operator: 'OR',\n//   right: {\n//     field: 'job',\n//     term: 'engineer'\n//   }\n// }\n\nconsole.log(lucene.toString(ast));\n// name:frank OR job:engineer\n```\n\n\n## Grammar\nThe parser is auto-generated from a PEG implementation in JavaScript called [PEG.js](https://pegjs.org/).\n\nTo test the grammar without using the generated parser, or if you want to modify it, try out [PEG.js online](http://pegjs.org/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.\n\n\n## History\nThis project is based on [thoward/lucene-query-parser.js](https://github.com/thoward/lucene-query-parser.js) and its forks (most notably [xomyaq/lucene-queryparser](https://github.com/xomyaq/lucene-queryparser)). The project is forked to allow some broader changes to the API surface area, project structure and additional capabilities.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbripkens%2Flucene","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbripkens%2Flucene","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbripkens%2Flucene/lists"}