docs: @ResourceMapping(value = "retrieveSearchJSONResults")
      public ModelAndView showJSONSearchResults(PortletRequest request) {
  
          PortletPreferences prefs = request.getPreferences();
          int maxTextLength =
                  Integer.parseInt(prefs.getValue(AUTOCOMPLETE_MAX_TEXT_LENGTH_PREF_NAME, "180"));
  
          final Map<String, Object> model = new HashMap<>();
          List<AutocompleteResultsModel> results = new ArrayList<>();
  
          final PortletSession session = request.getPortletSession();
          String queryId = (String) session.getAttribute(SEARCH_LAST_QUERY_ID);
          if (queryId != null) {
              final PortalSearchResults portalSearchResults =
                      this.getPortalSearchResults(request, queryId);
              if (portalSearchResults != null) {
                  final ConcurrentMap<String, List<Tuple<SearchResult, String>>> resultsMap =
                          portalSearchResults.getResults();
                  results = collateResultsForAutoCompleteResponse(resultsMap, maxTextLength);
              }
          }
          model.put("results", results);
          model.put("count", results.size());
          return new ModelAndView("json", model);
      }