X-Git-Url: https://git.mdrn.pl/pylucene.git/blobdiff_plain/a2e61f0c04805cfcb8706176758d1283c7e3a55c..aaeed5504b982cf3545252ab528713250aa33eed:/lucene-java-3.5.0/lucene/contrib/xml-query-parser/src/demo/WebContent/index.jsp diff --git a/lucene-java-3.5.0/lucene/contrib/xml-query-parser/src/demo/WebContent/index.jsp b/lucene-java-3.5.0/lucene/contrib/xml-query-parser/src/demo/WebContent/index.jsp new file mode 100644 index 0000000..705f27d --- /dev/null +++ b/lucene-java-3.5.0/lucene/contrib/xml-query-parser/src/demo/WebContent/index.jsp @@ -0,0 +1,145 @@ + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" +import="org.apache.lucene.search.*,org.apache.lucene.document.*" +pageEncoding="ISO-8859-1"%> + + + + + + XML Query Parser demo + + +

Job Search

+<% + // Load form variables + String description=request.getParameter("description"); + String type=request.getParameter("type"); + String salaryRange=request.getParameter("salaryRange"); +%> +
+ + + + + + + + + + + + + + + + + + + + + + + +
Description + "/> +
Type + +
Salary + +
Locations +<% + String locs[]={"South","North","East","West"}; + boolean allLocsBlank=true; + for(int i=0;i + + checked="checked" +<% } +%> + type="checkbox"/> + +<% + } +%> +
+ +
+
+<% + Document[] results=(Document[])request.getAttribute("results"); + if(results!=null) + { +%> + + + + + + + + <% + for (int i = 0; i < results.length; i++) + { + Document doc = results[i]; + %> + + + + + + + + <% + } + %> +
TypeLocationSalaryDescription
<%=doc.get("type")%><%=doc.get("location")%><%=doc.get("salary")%>,000<%=doc.get("description")%>
+ +<% + }//end if has results +%> + +