Prettify your solr function query.
Build requires sbt
. If you haven't installed, please refer Installing sbt.
$ sbt assembly
After minutes of waiting for compiling, you will get jar.
$ cd target/scala-2.XX // XX is a version, and depends on your environment
$ java -jar solrfunc-prettify-assembly-0.1.0-SNAPSHOT.jar
Print Solr function more pretty way
...
If you get usage explanation like above, they it's working fine.
$ echo "div(def(weight, 63), product(def(tall, 170),def(tall, 170)))" | java -jar solrfunc-prettify.jar -
div(
def(
weight,
63
),
product(
def(
tall,
170
),
def(
tall,
170
)
)
)