                 description]}
         vix-doc]
 
-    (doto #^Document (Document.)
+    (doto ^Document (Document.)
           ;; create a fulltext field with all the values to search on
           ;; mashed together in a single value. This field is not stored.
           (.add (create-field "fulltext"

                                      :stored
                                      :indexed)))))

(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)]

               (>= max min))
      (NumericRangeQuery/newLongRange field-name min max true true))))

(defn ^QueryWrapperFilter create-filter [filters]
  "Creates a Lucene BooleanQuery wrapped in a QueryWrapperFilter with one
   or more filter queries (if zero this function returns nil).

