goncalotomas / lucene_parser

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:Apache License 2.0


Languages

Language:Erlang 100.0%