Created
September 13, 2010 20:50
-
-
Save lancepantz/578019 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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"}}}) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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