Fork me on GitHub
#clojars
<
2016-12-21
>
dottedmag17:12:18

I have tried to run a local copy using a README on clojars-web: cloned, ran (migrate) in REPL, copied ~/.m2/repository into data/dev_repo, ran lein run -m clojars.tools.setup-dev, ran (run), and now I see a website with no packages.

dottedmag17:12:20

all.edn is empty.

dottedmag17:12:14

jars table in data/db is empty too. I suppose I need to pass some argument to setup-dev to point to repo?

dottedmag17:12:48

Hmm, I have supplied a config using JAVA_TOOL_OPTIONS=-Dclojars.config.file=dev-resources/config.clj, now it indexed something.

dottedmag17:12:03

Heh, I made it work, but it's not user-friendly. E.g. all releases uploaded yesterday: https://clojars.org/search?q=at%3A%5B1482255662000+TO+1482342072000%5D

dottedmag17:12:28

The numbers are, obviously, Unix timestamps in milliseconds.

dottedmag17:12:38

Syntax is straightforward Lucene.

dottedmag18:12:24

Search is a Lucene query, so to make it better one has to traverse Query returned by Lucene parser and adjust all kinds of queries using field at. Not hard, but cumbersome.