                (map atom-spatial/shape->xml-element shapes)
                (map #(x/element :echo:difId {} %) associated-difs)
                (x/element :echo:onlineAccessFlag {} online-access-flag)
-               (x/element :echo:browseFlag {} browse-flag))))
+               (x/element :echo:browseFlag {} browse-flag)
+               (when score (x/element :relevance:score {} score)))))
 
 (defn- granule-atom-reference->xml-element
   "Converts a granule search result atom reference into an XML element"
   [reference]
-  (let [{:keys [id title updated dataset-id producer-gran-id size original-format
+  (let [{:keys [id size title updated dataset-id producer-gran-id size original-format
                 data-center start-date end-date atom-links online-access-flag browse-flag
                 day-night cloud-cover coordinate-system shapes]} reference]
     (x/element :entry {}


        items (if (= :granule concept-type)
                (append-collection-links context items)
                items)]
    (xml-fn
      (x/element :feed ATOM_HEADER_ATTRIBUTES
                 (x/element :updated {} (str (time/now)))
                 (x/element :id {} (url/atom-request-url context concept-type result-format))
                 (x/element :title {:type "text"} (concept-type->atom-title concept-type))

(defn- collection-elastic-result->query-result-item
  [elastic-result]
  (let [{concept-id :_id
         score :_score
         {[short-name] :short-name
          [version-id] :version-id
          [summary] :summary
