/lucene_parser

standalone rebar3 app taken from https://github.com/basho/riak_search/blob/develop/apps/lucene_parser

Primary LanguageErlangApache License 2.0Apache-2.0

lucene_parser Build Status

lucene_parser is a project for parsing Lucene-like query syntax into tokens.

Usage:

  {ok, Query} = lucene_parser:parse("default_index", "default_field", "foo AND bar").
  Query == #intersection { ops=[#term { s="foo" }, #term { s="bar" }] }.

Notes:

  • All arguments are expected to be lists.
  • The components of the query graph can be found in lucene_parser.hrl.