Skip to content
Browse files

Added project.clj, .gitignore and moved clucy to clucy.core

  • Loading branch information...
1 parent f0a7cd1 commit 4516ae6648e453b6cba45e180bb510effd70bcda @weavejester weavejester committed Mar 26, 2010
Showing with 21 additions and 11 deletions.
  1. +3 −0 .gitignore
  2. +7 −0 project.clj
  3. +11 −11 src/{clucy.clj → clucy/core.clj}
View
3 .gitignore
@@ -0,0 +1,3 @@
+lib
+classes
+clucy.jar
View
7 project.clj
@@ -0,0 +1,7 @@
+(defproject clucy "0.1.0"
+ :description "A Clojure interface to the Lucene search engine"
+ :url "http://github/weavejester/clucy"
+ :dependencies [[org.clojure/clojure "1.1.0"]
+ [org.clojure/clojure-contrib "1.1.0"]
+ [org.apache.lucene/lucene-core "3.0.1"]]
+ :dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]])
View
22 src/clucy.clj → src/clucy/core.clj
@@ -1,14 +1,14 @@
-(ns clucy
+(ns clucy.core
(:use clojure.contrib.java-utils)
- (:import java.io.File)
- (:import org.apache.lucene.document.Document)
- (:import (org.apache.lucene.document Field, Field$Store, Field$Index))
- (:import (org.apache.lucene.index IndexWriter, IndexWriter$MaxFieldLength))
- (:import org.apache.lucene.analysis.standard.StandardAnalyzer)
- (:import org.apache.lucene.queryParser.QueryParser)
- (:import org.apache.lucene.search.IndexSearcher)
- (:import (org.apache.lucene.store RAMDirectory, NIOFSDirectory))
- (:import org.apache.lucene.util.Version))
+ (:import java.io.File
+ org.apache.lucene.document.Document
+ (org.apache.lucene.document Field Field$Store Field$Index)
+ (org.apache.lucene.index IndexWriter IndexWriter$MaxFieldLength)
+ org.apache.lucene.analysis.standard.StandardAnalyzer
+ org.apache.lucene.queryParser.QueryParser
+ org.apache.lucene.search.IndexSearcher
+ (org.apache.lucene.store RAMDirectory NIOFSDirectory)
+ org.apache.lucene.util.Version))
(def *version* Version/LUCENE_30)
(def *analyzer* (StandardAnalyzer. *version*))
@@ -51,7 +51,7 @@
document))
(defn add
- "Add hash-maps to the search index"
+ "Add hash-maps to the search index."
[index & maps]
(with-open [writer (index-writer index)]
(doseq [m maps]

0 comments on commit 4516ae6

Please sign in to comment.
Something went wrong with that request. Please try again.