Skip to content

About

Simply library for composing lucene queries

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

lucenequery

Simple library for composing lucene queries

Example

  q = lq.New(lq.Or(
    lq.And(
      lq.Term("title", "foo bar"},
      lq.Term("body", "quick fox"},
    ),
    lq.Term("title", "fox"),
  )).String()

would create

((title:"foo bar" AND body:"quick fox") OR title:fox)

more complex examples in the tests

About

Simply library for composing lucene queries

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages