Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as HTML by admin ( 13 years ago )
<% page language="java" c charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import= "org.apache.solr.client.solrj.response.QueryResponse" %>
<%@ page import= "org.apache.solr.common.SolrDocument" %>
<%@ page import= "org.apache.solr.common.SolrDocumentList" %>
<%@ page import= "java.util.*" %>
<%@page import="org.apache.solr.client.solrj.response.QueryResponse" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" c charset=ISO-8859-1">
<title>Risposta della query</title>
<meta name="viewport" c initial-scale=1.0">
<meta name="description" c>
<meta name="author" c>
<!-- Le styles -->
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
[removed][removed]
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="http://twitter.github.io/bootstrap/assets/ico/favicon.png">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="">-SearchEngine Result-</a>
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
<a href="http://localhost:8080/SearchEngine/index.jsp">
Home</a></p>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
</head>
<body>
<div class ="container">
<div class="row">
<%String query = (String)request.getAttribute("query"); %>
<h3 align="center">-Results from query:"<%=query%>"</h3>
</div>
<br>
<h4 align="center">Number of found documents :(<%=request.getAttribute("numFounds")%>)</h4></div>
<% HashMap<String,List<String>> mappaSuggerimenti = (HashMap)request.getAttribute("mappaSuggerimenti"); %>
<% Set<String> tokens = mappaSuggerimenti.keySet(); %>
<% String suggerimento = "" ;%>
<% for (String word:tokens){
suggerimento = query.replaceAll(word,mappaSuggerimenti.get(word).get(0));
} %>
<% if (!suggerimento.equals(query) && suggerimento.equals("")==false) {%>
<div>
<h3 align="center" ><a >" class="btn btn-inverse"> <b> Forse cercavi: "<%=suggerimento%>"</a> </b></h3>
</div>
<% }//fine if %>
<div class="row offset1">
<!--/.row -->
<% ArrayList<HashMap<String,String>> listaDoc = (ArrayList) request.getAttribute("risposta"); %>
<%for (HashMap<String,String> map:listaDoc){%>
<div class ="well">
<div class="row">
<%String id = map.get("id");%>
<%String title = map.get("title"); %>
<%String descripti %>
<%String c %>
<%String resourcename = map.get("resourcename"); %>
<div class="span8">
<div class="page-header">
<h4> <a >" name="link_to_page"> <%=title%></h4></a></div>
</div></div><!--/.row -->
<div class="row">
<div class="span8">
<h5>Description:<%=description%></h5>
<% if (resourcename!=null) { %>
<h3><small><%= resourcename %></small></h3>
<h5 align="left"><small><BIG><BIG><%=content.replaceAll(query, "<b>"+query+"</b>") %></BIG></BIG></h5></small>
</div></div></div>
<% }//fine if %>
<div class="row">
<div class=span10>
</div> </div>
</div><!--/.well -->
<br><br>
<% }//fine ciclo for %>
</div> <!--/.container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
</body>
</html>
Revise this Paste