Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A robust Solr API written in Clojure.
Branch: master
Pull request Compare This branch is even with mattdeboard:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/icarus
test/icarus/test
.gitignore
README.rst
project.clj

README.rst

Icarus

A robust Solr query API for Clojure.

Getting Started

Add [icarus "0.1a"] to project.clj.

Example queries

(do-search "http://127.0.0.1:8983" (build-queryset (filter :city ["Indianapolis"
                                                                  "Muncie"]))
           {:rows 10 :fl "city,population,state"})

Composable queries

(def query1 (filter :city "Springfield"))
(def query2 (filter :state "Florida"))

;; Join the two query nodes with logical AND via ``-&`` or logical OR
;; via ``-|``
(do-search "http://127.0.0.1:8983" (-& [query1 query2])
           {:rows 10 :fl "city,population,state"})

Credits

Icarus is built on top of Clojure-Solr. The Icarus API is a more flexible interface to perform search via Solr, with a focus on expressing queries of arbitrary complexity in a clean, simple way.

License

Copyright (C) 2012 Matt DeBoard

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.