Area: UI
Sub-Area: Search State
Applies to: OSS + Cloud
Issue
You search in DataHub, open a result, and the search box no longer shows your search term. It is hard to refine the search or return to your results.
You Might Be Asking
- Why does my search term disappear?
- How can I keep my search context while browsing?
- Can I go back to my search results?
Cause
The search results page reads the query and filters from the URL (/search?query=...). On any other page, such as an entity page, the app passes an empty query and no filters to the search bar. The search box is therefore not guaranteed to keep your previous term after you open an entity.
DataHub Cloud v0.3.11 introduced a redesigned search bar. The v0.3.11 release notes list no fix for keeping the search term across navigation.
Solution
Use the browser back button to return to the results page. The results page reads the query and filters from the URL, so back returns you to the same results.
To refine your search, go back to the results page and change the query or filters there. You can also type a query in the search box and press Enter. This opens the results page with your query and applied filters in the URL.
For filter options on the results page, including matching all or any filters and negating a filter, see Advanced filters.