A parser for Apache Lucene Classic Queries.
(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"]]]]
Copyright © 2019 Gregor Middell
This project is licensed under the GNU Lesser General Public License v3.0.