Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including lucene-parser with all npm packages installed. Try it out:

var luceneParser = require("lucene-parser")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

lucene-parser v0.1.2

A small library providing utility methods to parse a freetextquery to lucene-syntax


A minimal node module providing utility methods to parse an fetextquery to lucene syntax.


  npm install lucene-parser --save


  var lucene_parser = require('lucene-parser')
  lucene_parser.setSearchTerm("hello:there i am a-test-string that.should.become lucne_friendly");

  // hello:there i am a-test-string that.should.become lucne_friendly
  // hello:"there" i* am* "a-test-string" "that.should.become" "lucne_friendly"


   npm test


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.


Feel free to drop me a line or a shoutout on Twitter, it would be cool to know if you find it useful and use it in any of your projects. And feel free to write me an issues if there is some functionality you miss.

Release History

  • 0.1.0 Initial release
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free