Skip to content

nodefortytwo/lucenequery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages