<%@ 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]; %> <% } %>
Type Location Salary Description
<%=doc.get("type")%> <%=doc.get("location")%> <%=doc.get("salary")%>,000 <%=doc.get("description")%>
<% }//end if has results %>