                             [:thead
                              [:tr
                               (for [col (:header opts)]
-                                [:th (:label col) (str " (" (:field col) ")")])]]
+                                [:th (:label col) (str " (" (string/join "/" (:field col))")")])]]
                             [:tbody
                              (let [hits (get-in query-result [:hits :hits])]
                                (for [hit hits]
                                  [:tr
                                   (for [col (:header opts)]
-                                    [:td (-> hit :_source (get (-> col :field keyword)))])]))]]]]
+                                    [:td (get-in hit (map keyword (:field col)))])]))]]]]
                          [:.card-reveal
                           [:span.card-title.grey-text.text-darken-4 "metadata"
                            [:i.mdi-navigation-close.right]

  [owner result]
  (om/set-state! owner :query-result result))

(defcomponent searchbox [cursor owner opts]
  (will-mount [_]
              (update-searchbox owner "")

                  (html [:.card
                         [:.card-content
                          [:span.card-title.black-text "searching in "
                           [:strong (join-str (:es-index opts) (:es-type opts))]
                           [:a.btn-floating.btn-flat.waves-effect.activator.white.right
                            [:i.mdi-action-settings.grey-text]]]
                          [:.input-field
