# Test OpenGrok installation (LXR replacement?)

- Thread: https://externals.io/message/46531
- Original archive: https://news-web.php.net/php.internals/46531
- Started by Michael Maclean on 2009-12-27T21:17:58+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #46531 — Michael Maclean — 2009-12-27T21:17:58+00:00

URL: https://externals.io/message/46531#46531

Hi,
Since LXR hasn't been updating since the shift to SVN, I've been 
investigating bringing it back. Today, though, I came across OpenGrok 
which appears to be a far more modern implementation of the same thing, 
using Lucene as the back end. I've set up a test installation of it at 
http://php-og.mgdm.net if anyone is interested in playing with it.

Advantages seem to be:
* It's really quite fast
* It has a nicer UI, in my opinion
* It's not too hard to set up
* It handles multiple branches *relatively* well
* It does incremental indexing, which I don't think LXR does

It has the potential disadvantage that it requires Tomcat, which means 
running another web server somewhere, but I'm quite willing to volunteer 
to look after it if we can find a php.net machine to put it on at some 
point. For now, the test install is updating each branch from SVN and 
reindexing once every two hours.

Any comments?

Cheers,
Michael

---

## #46532 — Pierre Joye — 2009-12-28T01:16:41+00:00

URL: https://externals.io/message/46531#46532 · In reply to: #46531

hi,

On Sun, Dec 27, 2009 at 10:17 PM, Michael Maclean
<michael@no-surprises.co.uk> wrote:
> Hi,
> Since LXR hasn't been updating since the shift to SVN, I've been
> investigating bringing it back. Today, though, I came across OpenGrok which
> appears to be a far more modern implementation of the same thing, using
> Lucene as the back end. I've set up a test installation of it at
> http://php-og.mgdm.net if anyone is interested in playing with it.

Nice tool, thanks for the link&test site!

> Advantages seem to be:
> * It's really quite fast

really fast :)

> * It has a nicer UI, in my opinion
> * It's not too hard to set up
> * It handles multiple branches *relatively* well
> * It does incremental indexing, which I don't think LXR does
>
> It has the potential disadvantage that it requires Tomcat, which means
> running another web server somewhere, but I'm quite willing to volunteer to
> look after it if we can find a php.net machine to put it on at some point.
> For now, the test install is updating each branch from SVN and reindexing
> once every two hours.
>
> Any comments?

First suggestion, would it be possible to have *.c/h first in the
results instead of the phpt?

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #46535 — Philip Olson — 2009-12-28T02:24:02+00:00

URL: https://externals.io/message/46531#46535 · In reply to: #46531

> Hi,
> Since LXR hasn't been updating since the shift to SVN, I've been investigating bringing it back. Today, though, I came across OpenGrok which appears to be a far more modern implementation of the same thing, using Lucene as the back end. I've set up a test installation of it at http://php-og.mgdm.net if anyone is interested in playing with it.
> 
> Advantages seem to be:
> * It's really quite fast
> * It has a nicer UI, in my opinion
> * It's not too hard to set up
> * It handles multiple branches *relatively* well
> * It does incremental indexing, which I don't think LXR does
> 
> It has the potential disadvantage that it requires Tomcat, which means running another web server somewhere, but I'm quite willing to volunteer to look after it if we can find a php.net machine to put it on at some point. For now, the test install is updating each branch from SVN and reindexing once every two hours.
> 
> Any comments?

Looks great, and much nicer. If you feel pb11[1] could handle it, then we could dedicate this box to OpenGrok (as grok.php.net?).

Regards,
Philip

[1] http://wiki.php.net/systems/pb11

---

## #46541 — Michael Maclean — 2009-12-28T09:58:35+00:00

URL: https://externals.io/message/46531#46541 · In reply to: #46532

Pierre Joye wrote:
> First suggestion, would it be possible to have *.c/h first in the
> results instead of the phpt?

I'm not sure, but I'll have a look.

Michael

---

## #46542 — Michael Maclean — 2009-12-28T09:59:35+00:00

URL: https://externals.io/message/46531#46542 · In reply to: #46535

Philip Olson wrote:
> Looks great, and much nicer. If you feel pb11[1] could handle it, then we could dedicate this box to OpenGrok (as grok.php.net?).

it'd be worth a shot, I think. Though could we get the OS on there 
upgraded to something a little newer? I'm not sure if Java 1.6 will run 
on that version of FreeBSD?

Michael

---

## #46550 — Pierre Joye — 2009-12-28T12:20:23+00:00

URL: https://externals.io/message/46531#46550 · In reply to: #46542

hi,

On Mon, Dec 28, 2009 at 10:59 AM, Michael Maclean
<michael@no-surprises.co.uk> wrote:
> Philip Olson wrote:
> > […]
>
> it'd be worth a shot, I think. Though could we get the OS on there upgraded
> to something a little newer? I'm not sure if Java 1.6 will run on that
> version of FreeBSD?

You can re image it (drop a mail to pair).

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org
