2006-07-19 14:48:16 -04:00
|
|
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
|
2006-11-09 18:13:58 -05:00
|
|
|
<%--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
--%>
|
2006-02-22 00:53:23 -05:00
|
|
|
<%@include file="header.jsp" %>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
|
|
|
<br clear="all">
|
2008-07-12 10:59:12 -04:00
|
|
|
<form name="queryForm" method="GET" action="../select" accept-charset="UTF-8">
|
2006-11-30 19:16:46 -05:00
|
|
|
<!-- these are good defaults to have if people bookmark the resulting
|
|
|
|
URLs, but they should not show up in the form since they are very
|
|
|
|
output type specific.
|
|
|
|
-->
|
|
|
|
<input name="indent" type="hidden" value="on">
|
2006-12-14 08:03:40 -05:00
|
|
|
<input name="version" type="hidden" value="2.2">
|
2006-01-26 00:37:29 -05:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2006-02-23 17:31:00 -05:00
|
|
|
<strong>Solr/Lucene Statement</strong>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
<td>
|
2006-11-30 19:16:46 -05:00
|
|
|
<textarea rows="5" cols="60" name="q"><%= defaultSearch %></textarea>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2009-08-20 14:52:30 -04:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Filter Query</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<textarea rows="2" cols="60" name="fq"></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2006-01-26 00:37:29 -05:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Start Row</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input name="start" type="text" value="0">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Maximum Rows Returned</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input name="rows" type="text" value="10">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Fields to Return</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
2006-11-30 19:16:46 -05:00
|
|
|
<input name="fl" type="text" value="*,score">
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Query Type</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
2011-03-29 22:17:31 -04:00
|
|
|
<input name="qt" type="text">
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2006-11-30 19:16:46 -05:00
|
|
|
<strong>Output Type</strong>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
<td>
|
2006-11-30 19:16:46 -05:00
|
|
|
<input name="wt" type="text" value="standard">
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Debug: enable</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input name="debugQuery" type="checkbox" >
|
2006-11-30 19:16:46 -05:00
|
|
|
<em><font size="-1"> Note: you may need to "view source" in your browser to see explain() correctly indented.</font></em>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Debug: explain others</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input name="explainOther" type="text" >
|
2006-11-30 19:16:46 -05:00
|
|
|
<em><font size="-1"> Apply original query scoring to matches of this query to see how they compare.</font></em>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2006-09-01 15:22:47 -04:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Enable Highlighting</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input name="hl" type="checkbox" >
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<strong>Fields to Highlight</strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input name="hl.fl" type="text" >
|
|
|
|
</td>
|
|
|
|
</tr>
|
2006-01-26 00:37:29 -05:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td>
|
2007-07-29 16:25:02 -04:00
|
|
|
<input class="stdbutton" type="submit" value="search" onclick="if (queryForm.q.value.length==0) { alert('no empty queries, please'); return false; } else { queryForm.submit(); } ">
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2006-11-30 19:16:46 -05:00
|
|
|
<br clear="all">
|
|
|
|
<em>
|
|
|
|
This form demonstrates the most common query options available for the
|
|
|
|
built in Query Types. Please consult the Solr Wiki for additional
|
|
|
|
Query Parameters.
|
|
|
|
</em>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|