opengrok
opengrok copied to clipboard
SearchController support ContextSurround
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:
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!
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