Permalink
Browse files

Merge pull request #6 from GunioRobot/clean

Hi! I cleaned up your code for you!
  • Loading branch information...
2 parents 328b285 + a99f32f commit 1d4511a2bb2d89b4d7aec473befb9ee28bdd9597 @mlehman committed Jan 10, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/solrclj.clj
  2. +2 −2 src/solrclj/servers.clj
  3. +1 −1 test/solrclj/test_helpers.clj
View
@@ -1,7 +1,7 @@
(ns solrclj
"A clojure library for Apache Solr."
(:import [org.apache.solr.client.solrj SolrServer SolrQuery])
- (:use [solrclj.servers :only [create-solr-server]]
+ (:use [solrclj.servers :only [create-solr-server]]
[solrclj.documents :only [add-document
add-documents
create-solr-document
@@ -10,7 +10,7 @@
(:import [org.apache.solr.common.params MultiMapSolrParams]))
(defn ^SolrServer solr-server
- "Constructs a SolrServer with a configuration map.
+ "Constructs a SolrServer with a configuration map.
:type - The implementation of SolrServer to create.
Additional parameters depending on type:
View
@@ -6,7 +6,7 @@
(defmulti create-solr-server :type)
-(def default-embedded-config
+(def default-embedded-config
{:type :embedded
:solr-config "solr.xml"
:dir "./solr"})
@@ -36,7 +36,7 @@
container (core-container dir solr-config-file)]
(embedded-solr-server container core)))
-(def default-http-config
+(def default-http-config
{:type :http
:host "127.0.0.1"
:port 8080
@@ -45,7 +45,7 @@
(.addConnector (create-connector 2345))
(.setHandler (create-solr-web-app "test-jetty"))
(.start)))
-
+
(defn stop-jetty [#^Server jetty-server]
(.stop jetty-server))

0 comments on commit 1d4511a

Please sign in to comment.