Skip to content

Instantly share code, notes, and snippets.

@twillis
Created March 22, 2014 19:06
Show Gist options
  • Save twillis/9712569 to your computer and use it in GitHub Desktop.
Save twillis/9712569 to your computer and use it in GitHub Desktop.
with this function, I commit the id3tags of my music collection to elasticsearch, now for the web part
(defn do-scan [initial-dir]
(dorun
(map prn (map :canonical-path
(filter identity
(map upsert-file-doc
(map file-data
(supported-files-seq initial-dir))))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment