 
 ;; Outside of keyword search, allow the user to sort by community usage
 (deftest sort-by-community-usage
-  (query-to-elastic/set-sort-use-relevancy-score! true)
+  (dev-sys-util/eval-in-dev-sys (query-to-elastic/set-sort-use-relevancy-score! true))
   (ingest-community-usage-metrics)
   (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A" ;10
                                     :entry-title "Relevancy 1"

       "AG_MAPSS,2,30\n"))

(deftest community-usage-not-provided-versions
  (query-to-elastic/set-sort-use-relevancy-score! true)
  (ingest-community-usage-metrics sample-csv-not-provided-versions)
  (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A"
                                    :entry-title "AMSR-L1A V3 Relevancy"

    (is (= ["Relevancy 2" "Relevancy 3" "Relevancy 1"] (map :name results)))))

(deftest change-metrics
  (dev-sys-util/eval-in-dev-sys (query-to-elastic/set-sort-use-relevancy-score! true))
  (ingest-community-usage-metrics)

  (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A"
