Details
-
Story
-
Status: Closed
-
Minor
-
Resolution: Completed
-
None
Description
Problem
When the search engine is Elasticsearch, the output is a JSON and it is displayed without formatting (see the screenshot attached)
- Start portal
- Go the default 'search' page http://localhost:8080/web/guest/search
- Add the Search Insights widget to the page
- Execute a random search
Negative Consequences
Readability is limited, forces the admin to copy-paste and format the text manually.
Acceptance Criteria
- Pretty-print the JSON output for the Request and the Response in the Search Insights widget. It applies to the Elasticsearch engine only, the Solr query string looks different, not a JSON.
- "Copy to clipboard" button added to both Request and Response sections
Impact
Improved readability. No need to format the text manually.
Docs
https://learn.liferay.com/dxp/latest/en/using-search/search-pages-and-widgets/search-insights.html
Attachments
Issue Links
- demands
-
LRDOCS-10308 Update Search Insights docs: pretty-print JSON, Copy to Clipboard buttons
-
- Closed
-
- is related to
-
LPS-72677 New Search Portlets: Search Insights
-
- Closed
-
- relates
-
LPS-154344 Search Insights widget "Copy to Clipboard" buttons not working on virtual instance
- Closed
(1 mentioned in)