/usr/share/solr/web/admin/form.jsp is in solr-common 3.6.2+dfsg-10+deb9u2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | <%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%--
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.
--%>
<%@include file="header.jsp" %>
<script>
function onQueryFormSubmit() {
if (queryForm.q.value.length==0) {
alert('no empty queries, please');
return false;
}
var qtDom = queryForm.qt;
var qt = qtDom.value;
if (qt[0] == "/") {
queryForm.action = ".."+qt;
qtDom.setAttribute("name","");//prevent submission (kind of a hack)
}
return true;
}
</script>
<br clear="all">
<form name="queryForm" method="GET" action="../select" accept-charset="UTF-8" onSubmit="return onQueryFormSubmit()">
<!-- 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">
<input name="version" type="hidden" value="2.2">
<table>
<tr>
<td>
<strong>Request Handler</strong>
</td>
<td>
<!-- Note: look at the onSubmit handler which treats this input specially -->
<input name="qt" type="text" value="/select">
</td>
</tr>
<tr>
<td>
<strong>Query String</strong>
</td>
<td>
<textarea rows="5" cols="60" name="q"><%= defaultSearch %></textarea>
</td>
</tr>
<tr>
<td>
<strong>Filter Query</strong>
</td>
<td>
<textarea rows="2" cols="60" name="fq"></textarea>
</td>
</tr>
<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>
<input name="fl" type="text" value="*,score">
</td>
</tr>
<tr>
<td>
<strong>Output Type</strong>
</td>
<td>
<input name="wt" type="text" value="">
</td>
</tr>
<tr>
<td>
<strong>Debug: enable</strong>
</td>
<td>
<input name="debugQuery" type="checkbox" >
<em><font size="-1"> Note: you may need to "view source" in your browser to see explain() correctly indented.</font></em>
</td>
</tr>
<tr>
<td>
<strong>Debug: explain others</strong>
</td>
<td>
<input name="explainOther" type="text" >
<em><font size="-1"> Apply original query scoring to matches of this query to see how they compare.</font></em>
</td>
</tr>
<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>
<tr>
<td>
</td>
<td>
<input class="stdbutton" type="submit" value="search">
</td>
</tr>
</table>
</form>
<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>
</body>
</html>
|