                                       :stored
                                       :indexed)))))
 
-(defn #^IndexWriter create-index-writer [analyzer directory mode]
+(defn ^IndexWriter create-index-writer [analyzer directory mode]
   "Creates an IndexWriter with the provided analyzer and directory.
    The mode has three options: :create, :append or :create-or-append."
   (let [config (IndexWriterConfig. (Version/LUCENE_35) analyzer)]

(def directory (create-directory config/lucene-index-path))
(def analyzer (create-analyzer))

(defn #^IndexReader create-index-reader [#^Directory directory]
  "Creates IndexReader for the specified directory, but returns nil if
   the provided directory exists but doesn't contain a valid index."
  (try

                     (create-document document)
                     (create-analyzer))))

(defn ^NumericRangeQuery create-date-range-query
  [field-name start-date-rfc3339 end-date-rfc3339]
  "Creates a NumericRangeQuery for field-name using start and end date
   string arguments."
