Skip to content

Instantly share code, notes, and snippets.

@lancepantz
Created September 13, 2010 20:50
Show Gist options
  • Save lancepantz/578019 to your computer and use it in GitHub Desktop.
Save lancepantz/578019 to your computer and use it in GitHub Desktop.
(defproject fulltext "0.0.1-SNAPSHOT"
:description "experimenting with fulltext search variants"
:dependencies [[clojure "1.2.0"]
[clojure-contrib "1.2.0"]]
:dev-dependencies [[swank-clojure "1.2.0"]
[clojure-contrib "1.2.0"]
[postgresql/postgresql "8.4-701.jdbc4"]
[org.clojars.lancepantz/clojure-solr "0.2.0"]]
:environments {:development {:db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//localhost:5432"
:user "devdbuser"
:password "devdbpass"}}
:qa {:db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//qadb:5432"
:user "qadbuser"
:password "qadbpass"}}})
(deftask load
(binding [*connection* (:db *env*)]
(let [corpus (first (:load *opts*))]
(reset corpus)
(import-corpus corpus))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment