Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OpenGrok

1,134 views
Skip to first unread message

Robert Sayre

unread,
Jul 8, 2006, 2:24:44 PM7/8/06
to
I set up the LXR alternative OpenGrok
<http://www.opensolaris.org/os/project/opengrok/> and pointed it at my
CVS checkout:

<http://64.131.247.154:8080/> (will disappear in a few days)

The CVS history doesn't work, because it wants a local copy of the
repository.

It seems like an improvement on LXR for the things I use, and it took me
15 minutes to set up. The only snag is that it doesn't search for word
fragments, but this may be a configuration option.

-Rob

Scott

unread,
Jul 25, 2006, 6:28:24 PM7/25/06
to

OpenGrok does search for word fragments using the * and ? wildcards.
However, I can't find a way to get OpenGrok to accept a * or a ? at the
first of the search string (e.g. *oogle should match Froogle and
Google). F*oogle, F?oogle, Froog* all work fine, but I get the
following error when trying to search for *oogle.

Error:
*oogle
Lexical error at line 1, column 1. Encountered: "*" (42), after : ""

Any ideas anyone?

-Scott

Scott

unread,
Jul 26, 2006, 9:30:53 AM7/26/06
to

I ended up writing to Chandan, a member of the OpenGrok development
team, who clarified things:

------------------------------
I wrote:
I've found a small quirk that I haven't been able to get
around. Doing a "full search" in OpenGrok with globbing or wildcards
seems to work great unless you place the wildcard at the very first of
your search string. For example, G*ogle or G?ogle would return search
results for Google, but *oogle (which should return Froogle and
Google) gives me this error:

Error:
*oogle
Lexical error at line 1, column 1. Encountered: "*" (42), after : ""

Any ideas on how to get around this problem? Thanks in advance!

------------------------------
Chandan responded:
It is not possible,
Its syntax is in more details here:
http://lucene.apache.org/java/docs/queryparsersyntax.html

The reason is take the analogy of an Index at the back of a book. To
search
Go*gle you will need to go to 'G' and list all words that end with gle.
Otherwise for *oogle, you will need to scan through the whole index -
which would be tiresome.

Also * and ? dont work if there are too many matches for those queries.
-Chandan
------------------------------

0 new messages