-
-
Save mattdeboard/ff80a5509a5241065a98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [tags (element :add {} | |
(for [jj test-job] | |
(let [job (merge jj (job-buid jj))] | |
(element :doc {} | |
(element :field {:name "buid"} (str (:buid_id job))) | |
(element :field {:name "city"} (:city job)) | |
(element :field {:name "city_ac"} (:city job)) | |
(element :field {:name "city_exact"} (:city job))))))] | |
(with-open [out-file (java.io.FileWriter. "/tmp/foo.xml")] | |
(emit tags out-file))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment