title: Making one of the field in Solr (URL)hyperlink
body: <p>What I mean is, when the user search a particular stuff, for instance Supreme, </p>
  
  <p>It will print out <strong>supremenewyork.com</strong> , Supreme, A skateboarding shop/clothing brand[1][2] established in New York City in April 1994.</p>
  
  <p>How do I make the text <strong>supremenewyork.com</strong> become an URL. Basically I get the parameter from servlet and printed on a JSP result page. Based by what I know it cannot be done in the Solr side. </p>
  
  <p>Any expert in Solr able to give me a solution?</p>
  
  <p>Below is my following code. </p>
  
  <pre><code>        System.out.println("request parameter: "
                  + request.getParameter("search"));
          PrintWriter out = response.getWriter();
          try {
              HttpSolrServer solr = new HttpSolrServer("http://localhost:8983/solr/Corename/");
              SolrQuery query = new SolrQuery();
              String test;
  
              // Getting the parameter from the textbox name search
              query.setQuery(request.getParameter("search"));
  
  
              query.setFields("id", "content");
              query.setStart(0);
  
              QueryResponse response1 = solr.query(query);
              SolrDocumentList results = response1.getResults();
              for (int i = 0; i &lt; results.size(); ++i) {
  
                  test = results.toString();
                  String testresults = test.replace("numFound=2,start=0,docs=[","");
                  testresults = testresults.replace("numFound=1,start=0,docs=[","");
                  testresults = testresults.replace("numFound=4,start=0,docs=[","");
                  testresults = testresults.replace("SolrDocument{", "");
                  testresults = testresults.replace("content=[", "");
                  testresults = testresults.replace("id=", "");
                  testresults = testresults.replace("]}]}", "");
                  testresults = testresults.replace("]}", "");
  
  
  
                  request.setAttribute("testresults", testresults);
                  System.out.println(testresults);
                  request.getRequestDispatcher("Results.jsp").forward(request,
                          response);
  
              }
          } catch (SolrServerException se) {
              se.printStackTrace();
  
          }
  
      }
  
      protected void doPost(HttpServletRequest request,
              HttpServletResponse response) throws ServletException, IOException {
          // TODO Auto-generated method stub
      }
  }
  </code></pre>
  
  <p><strong>JSP Code:</strong></p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;THE SUPER SEARCH&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h4&gt;Here's the following results&lt;/h4&gt;
  &lt;%String testresults=(String)request.getAttribute("testresults");
  out.print("" + testresults);
  %&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>