Fix issue with form action URL and fq parameters, and removed some superfluous copy/paste JavaScript that leaked in

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@956316 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2010-06-20 02:41:19 +00:00
parent b58675a60c
commit 85cbe4e316
1 changed files with 4 additions and 4 deletions

View File

@ -3,13 +3,16 @@
#set($clusters = $response.response.clusters)
<div class="query-box">
<form id="query-form" action="#{url_for_home}#fqs($request.params.getParams('fq'))" method="GET">
<form id="query-form" action="#{url_for_home}" method="GET">
<a href="#url_for_home#if($request.params.get('debugQuery'))?debugQuery=true#end"><img src="#{url_for_solr}/admin/solr_small.png" id="logo"/></a>
Find: <input type="text" id="q" name="q" value="$!esc.html($params.get('q'))"/>
#if($request.params.get('debugQuery'))
<input type="hidden" name="debugQuery" value="true"/>
#end
#foreach($fq in $request.params.getParams('fq'))
<input type="hidden" name="fq" value="$esc.html($fq)"/>
#end
<div>
#foreach($fq in $params.getParams('fq'))
#set($previous_fq_count=$velocityCount - 1)
@ -21,9 +24,6 @@
<pre style="display:none">$response.response.debug.parsedquery</pre>
#end
</form>
<script language="text/javascript">
$("input[type=text]").autoSuggest("/solr/suggest", {selectedItemProp: "name", searchObjProps: "name"}});
</script>
</div>
#if($response.response.spellcheck.suggestions and $response.response.spellcheck.suggestions.size() > 0)