     (index/wait-until-indexed))))
 
 (deftest community-usage-relevancy-scoring
-  (config/set-config-value! :sort-use-relevancy-score true)
+  (query-to-elastic/set-sort-use-relevancy-score! true)
   (ingest-community-usage-metrics)
   (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A"
                                     :entry-title "Relevancy 1"

             (map :name results))))))

(deftest ingest-metrics-after-collections
  (config/set-config-value! :sort-use-relevancy-score true)
  (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A"
                                    :entry-title "Relevancy 1"
                                    :version-id "3"}))

       "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"
