                   [:div.form-group
                    [:input.form-control {:type "text"
                                          :on-change #(search (.. % -target -value))}]]]])))
-(def search-query (nom/factory SearchQuery))
+(def search-query (om/factory SearchQuery))

(defn set-search-results!
  "Store the search results into the app-state."
  [statements]
  (nom/transact! parser/reconciler `[(search/results {:value ~statements})]))

(defn remove-search-results!
  "Reset the search results."
  []
  (set-search-results! {}))

(defn- handle-search-results
  "Handler which is called with the results from ElasticSearch. Extract statements

(ns discuss.components.search.statements
  (:require [sablono.core :as html :refer-macros [html]]
            [om.next :as om :refer-macros [defui]]
            [clojure.walk :refer [keywordize-keys]]
            [cljs.spec.alpha :as s]
            [ajax.core :refer [GET]]
