Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattdeboard/icarus
A robust Solr API written in Clojure.
https://github.com/mattdeboard/icarus
Last synced: 23 days ago
JSON representation
A robust Solr API written in Clojure.
- Host: GitHub
- URL: https://github.com/mattdeboard/icarus
- Owner: mattdeboard
- Created: 2012-02-27T05:02:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-03-01T03:38:21.000Z (over 12 years ago)
- Last Synced: 2024-04-17T09:52:29.056Z (7 months ago)
- Language: Clojure
- Homepage:
- Size: 91.8 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
======
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.