URL query string params

Hi, is there a way to set query string parameters in Lightning? For example, I want to navigate to the following url: "https://example.com/search?some_key=some_value".

The use case is that I have a search page. I type in a search term and results are displayed. If I select a result, it goes to a detail page. I want to be able to navigate back to the search page with the same search term and results displayed.