2010/5/17 Knut Anders Hatlen <knut.hat...@sun.com>:
> On 05/17/10 12:09 PM, Patrick ALLAERT wrote:
>> Hi,
>>
>> 2010/5/13 Jørgen Austvik <jorgen.aust...@sun.com>:
>>
>>>> Do you have some pointers that could help me developing this?
>>>>
>>> So, if I have not discouraged you (hope not ;), what I think you need:
>>> - how to get a list of symbols(names)
>>> - how to search for a given symbol(names)
>>>
>>> I don't know how to get a list of symbol names, but for the "get a list of
>>> hits (usages) for a given symbol(name), take a look at
>>> test/org/opensolaris/opengrok/search/SearchTest.java.
>>>
>> Seems a good start!
>
> Perhaps you could use Luke (http://code.google.com/p/luke/) to inspect
> the Lucene indexes and look at all the terms in the "refs" field that
> have a frequency of 1. I think that will give you the symbols that are
> referenced exactly once, or possibly those that are referenced in
> exactly one file. You may also want to filter out those symbols that are
> not present in the "defs" field of the index.

Very nice tool, unfortunately I wasn't able to retrieve an information
like the "frequency" of terms from one of the fields.
I am only able to get a list of terms sorted by popularity.

Regards,
Patrick
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to