cleaning up the forms on index.jsp and form.jsp ... main motivation was to get rid of hte stylesheet param since it's pretty much worthless, but i also wanted to try and make the only options displayed on form.jsp things that were general enough to apply to any combination of request handler / response writer pair that comes out of the box ... i deliberatley didn't include all of the highlight and facet params however, because I wasworred that would make the page too cluttered.

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@481116 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2006-12-01 00:16:46 +00:00
parent 94c5c83320
commit eb897e53d0
3 changed files with 25 additions and 43 deletions

View File

@ -153,6 +153,7 @@ Other Changes
8. check solr return code in admin scripts, SOLR-62 8. check solr return code in admin scripts, SOLR-62
9. Updated to Lucene 2.0 nightly build 2006-11-15, SVN revision 475069 9. Updated to Lucene 2.0 nightly build 2006-11-15, SVN revision 475069
10. Removed src/apps containing the legacy "SolrTest" app (hossman, SOLR-3) 10. Removed src/apps containing the legacy "SolrTest" app (hossman, SOLR-3)
11. Simplified index.jsp and form.jsp, primarily by removing/hiding XML
specific params, and adding an option to pick the output type. (hossman)
2006/01/17 Solr open sourced, moves to Apache Incubator 2006/01/17 Solr open sourced, moves to Apache Incubator

View File

@ -18,24 +18,22 @@
<%@include file="header.jsp" %> <%@include file="header.jsp" %>
<br clear="all"> <br clear="all">
<h2>/select mode</h2> <form name="queryForm" method="GET" action="../select">
<!-- 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.1">
<form name=queryForm method="GET" action="../select">
<table> <table>
<tr> <tr>
<td> <td>
<strong>Solr/Lucene Statement</strong> <strong>Solr/Lucene Statement</strong>
</td> </td>
<td> <td>
<textarea rows="5" cols="60" name="q"></textarea> <textarea rows="5" cols="60" name="q"><%= defaultSearch %></textarea>
</td>
</tr>
<tr>
<td>
<strong>Protocol Version</strong>
</td>
<td>
<input name="version" type="text" value="2.1">
</td> </td>
</tr> </tr>
<tr> <tr>
@ -59,7 +57,7 @@
<strong>Fields to Return</strong> <strong>Fields to Return</strong>
</td> </td>
<td> <td>
<input name="fl" type="text" value=""> <input name="fl" type="text" value="*,score">
</td> </td>
</tr> </tr>
<tr> <tr>
@ -72,18 +70,10 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<strong>Style Sheet</strong> <strong>Output Type</strong>
</td> </td>
<td> <td>
<input name="stylesheet" type="text" value=""> <input name="wt" type="text" value="standard">
</td>
</tr>
<tr>
<td>
<strong>Indent XML</strong>
</td>
<td>
<input name="indent" type="checkbox" checked="true">
</td> </td>
</tr> </tr>
<tr> <tr>
@ -92,7 +82,7 @@
</td> </td>
<td> <td>
<input name="debugQuery" type="checkbox" > <input name="debugQuery" type="checkbox" >
<em><font size="-1"> Note: do "view source" in your browser to see explain() correctly indented</font></em> <em><font size="-1"> Note: you may need to "view source" in your browser to see explain() correctly indented.</font></em>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -101,7 +91,7 @@
</td> </td>
<td> <td>
<input name="explainOther" type="text" > <input name="explainOther" type="text" >
<em><font size="-1"> apply original query scoring to matches of this query</font></em> <em><font size="-1"> Apply original query scoring to matches of this query to see how they compare.</font></em>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -129,7 +119,12 @@
</tr> </tr>
</table> </table>
</form> </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> </body>
</html> </html>

View File

@ -69,18 +69,6 @@
</td> </td>
</tr> </tr>
<!-- TODO: make it possible to add links to the admin page via solrconfig.xml
<tr>
<td>
<strong>Hardware:</strong><br>
</td>
<td>
[<a href="http://playground.cnet.com/db/machines-match.php3?searchterm=<%= hostname %>&searchfield=hostorserial">Status</a>]
[<a href="http://playground.cnet.com/db/machines-match.php3?searchterm=<%= hostname %>/t&searchfield=hostorserial">Traffic</a>]
[<a href="http://monitor.cnet.com/orca_mon/?mgroup=prob&hours=48&hostname=<%= hostname %>">Problems</a>]
</td>
</tr>
-->
<jsp:include page="get-file.jsp?file=admin-extra.html&optional=y" flush="true"/> <jsp:include page="get-file.jsp?file=admin-extra.html&optional=y" flush="true"/>
</table><P> </table><P>
@ -92,18 +80,16 @@
<h3>Make a Query</h3> <h3>Make a Query</h3>
</td> </td>
<td> <td>
[<a href="form.jsp">Full Interface</a>]
<td>
[<a href="form.jsp">Full Interface</a>]
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
StyleSheet:<br>Query: Query String:
</td> </td>
<td colspan=2> <td colspan=2>
<form name=queryForm method="GET" action="../select/"> <form name=queryForm method="GET" action="../select/">
<input class="std" name="stylesheet" type="text" value=""><br>
<textarea class="std" rows="4" cols="40" name="q"><%= defaultSearch %></textarea> <textarea class="std" rows="4" cols="40" name="q"><%= defaultSearch %></textarea>
<input name="version" type="hidden" value="2.1"> <input name="version" type="hidden" value="2.1">
<input name="start" type="hidden" value="0"> <input name="start" type="hidden" value="0">