Skip to content

gremid/lucene-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucene-query

A parser for Apache Lucene Classic Queries.

Clojars Project

Usage

(require '[lucene-query.core :as lucene])
(lucene/str->ast "field1:val AND -field2:val") ;; => [:query [:clause [:field [:term "field1"]] [:value [:term "val"]]] [:and] [:clause [:must-not] [:field [:term "field2"]] [:value [:term "val"]]]]

License

Copyright © 2019 Gregor Middell

This project is licensed under the GNU Lesser General Public License v3.0.