Is there an OpenGrok API? [closed]
Asked Answered
S

3

12

Is there an API for OpenGrok? I'm interested in mining the results in either Perl or Java. At the moment, I could perform HTML scrapping against the results, but seems less-than-ideal.

As per its website, it leverages Lucene, but no real info on how to connect to it other than via HTML.

Sliest answered 17/10, 2012 at 4:3 Comment(0)
Z
5

Starting in OpenGrok 0.13, there is a simple REST API.

With OpenGrok 1.0 there is a JSON API.

Zarathustra answered 17/4, 2017 at 17:51 Comment(1)
Apparently it's only available through localhostArchibald
R
2

Opengrok supports a command line interface that may be able to provide what you're looking for.

Example:

$ java -cp ./opengrok.jar org.opensolaris.opengrok.search.Search -R /var/opengrok/etc/configuration.xml -f "My Search"
Relaxation answered 19/4, 2013 at 18:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.