solr bindings for clojure
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src add data-import Aug 31, 2010
.gitignore update gitignore for cake and pom Aug 28, 2010
LICENSE license and readme Aug 8, 2010
README.rst fix rst Aug 31, 2010
project.clj bump version and update documentation Aug 31, 2010

README.rst

clojure-solr

Clojure bindings for Apache Solr.

Installation

To use within a Leiningen project, add the following to your project.clj file:

[clojure-solr "0.2.0-SNAPSHOT"]

To build from source, run:

lein deps
lein jar

Usage

(with-connection (connect "http://127.0.0.1:8983/solr")
  (add-document! {"id" "testdoc", "name" "A Test Document"})
  (add-documents! [{"id" "testdoc.2", "name" "Another test"}
                               {"id" "testdoc.3", "name" "a final test"}])
  (commit!)
  (search "test")
  (search "test" :rows 2))