opengrok icon indicating copy to clipboard operation
opengrok copied to clipboard

SearchController support ContextSurround

Open IceMIce opened this issue 3 years ago • 1 comments

hello,vladak,I am Chinese, the following content is translated by Google, I am very sorry if the description confuses you. JSP pages can return the number of rows by setting the setContextSurround(). like: image But it does not take effect in SearchController, so I would like to ask, does SearchController currently provide this function? Looking forward to your reply!

IceMIce avatar Mar 18 '22 12:03 IceMIce

The search API endpoint produces SearchResult which is basically a wrapper for list of SearchHit objects. These contain just a line and line number as documented on https://opengrok.docs.apiary.io/#reference/0/search/return-search-results

vladak avatar Apr 25 '22 07:04 vladak