Jim R. Wilson wrote:
> Hi all,
>
> I think what Dave is looking for is results in some other format than
> rendered HTML, for use as an API into a codebase.
>
> For example, consider an eclipse plugin which offers typing
> suggestions based on known tokens from OpenGrok.  Such a plugin could
> be written by scraping the HTML results - or by hooking into another
> API of some kind.
>
> I think Dave is looking for that other API.
>   

Hmm, then I suggest a bug will be filed for this, so it can be 
prioritized and scheduled I guess ...
note that adding such API will be a bigger effort, one will need to add 
an interface, preferably use SearchEngine internally and design the 
whole comm.

I personally think it's a good idea ... so far the only "structured 
format output" is the CLI call, but it needs the path to config file as 
another param, see 
http://src.opensolaris.org/source/xref/opengrok/trunk/src/org/opensolaris/opengrok/search/Search.java
and is not that easy to parse.

Based on it, one can create an interface, which is even callable from 
web I guess ...

hmm?
L

> -- Jim R. Wilson (jimbojw | trephine.org)
>
> On Mon, Sep 21, 2009 at 7:27 AM, Lubos Kosco <Lubos.Kosco at sun.com> wrote:
>   
>> Dave Purrington wrote:
>>     
>>> Fantastic project, loving it. Want more power.
>>>
>>> Is there a way for me to get search results in structured format?
>>> Documentation seems scant (or at least, I can't find it). The features page
>>> says OpenGrok supports RSS but search results don't provide an RSS link.
>>> Open search is ok too, although my path through that is less clear, just
>>> because the format is more obscure.
>>>
>>>       
>> RSS is supported currently for history log, so if you have a file under SCM
>> and opengrok recognizes it, you can see at the bottom of the page (yeah,
>> unfortunate, hopefully we will move it to top of the page) a graphical RSS |
>> XML FEED button ( http://src.opensolaris.org/source/default/img/rss.png
>> pointing to e.g.
>> http://src.opensolaris.org/source/rss/opengrok/trunk/README.txt )
>>
>> feel free to file a bug on feature request for other RSS functionality
>> on http://defect.opensolaris.org/bz/ in
>> File a bug / Development / OpenGrok
>> and/or look on http://opensolaris.org/os/project/opengrok/Issues/ for
>> existing  bugs before
>>
>>     
>>> Is there some magical configuration
>>>       
>> :-D
>>
>>     
>>> or query string parameter to get results in a structured format, or do I
>>> need to resort to another project (Lucene WS, unfortunately is not on a very
>>> recent version of Lucene, so it doesn't work), or am I in screen scraping
>>> territory here? Obviously, I want to avoid that last one like the plague.
>>>
>>>       
>> What is meant by the structured format here ?
>>
>> --
>> L
>>
>>     
>>> Thoughts?
>>>
>>> Thanks in advance,
>>> Dave P.
>>>
>>>       
>> _______________________________________________
>> opengrok-discuss mailing list
>> opengrok-discuss at opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss
>>
>>     

Reply via email to