You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a function to search for files based on their contents. This function would take a search string as an argument and returns the names of all files which contain this search string.
The text was updated successfully, but these errors were encountered:
mariusoe
changed the title
Add server sided search function for file contents
Implement endpoint for the config-server to search the configuration files' content
Feb 17, 2020
The response of the endpoint should contain JSON object which describes the search hits.
A hit could be something like:
{
line: 10,
start: 40,
end: 50
}
,where the line represents the line-number of the hit and start and end the position of the term withing the line. In this example, the search functionallity will not consider search queries which spans multiple lines, thus, only within one line.
The search term should be passed to the endpoint via a request parameter. The endpoint could be look like: .../search?q=search_term
In this exmaple, the parameter q stands for "query".
We need a function to search for files based on their contents. This function would take a search string as an argument and returns the names of all files which contain this search string.
The text was updated successfully, but these errors were encountered: