mirror of https://github.com/apache/lucene.git
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:
parent
b58675a60c
commit
85cbe4e316
|
@ -3,13 +3,16 @@
|
||||||
#set($clusters = $response.response.clusters)
|
#set($clusters = $response.response.clusters)
|
||||||
|
|
||||||
<div class="query-box">
|
<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>
|
<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'))"/>
|
Find: <input type="text" id="q" name="q" value="$!esc.html($params.get('q'))"/>
|
||||||
#if($request.params.get('debugQuery'))
|
#if($request.params.get('debugQuery'))
|
||||||
<input type="hidden" name="debugQuery" value="true"/>
|
<input type="hidden" name="debugQuery" value="true"/>
|
||||||
#end
|
#end
|
||||||
|
#foreach($fq in $request.params.getParams('fq'))
|
||||||
|
<input type="hidden" name="fq" value="$esc.html($fq)"/>
|
||||||
|
#end
|
||||||
<div>
|
<div>
|
||||||
#foreach($fq in $params.getParams('fq'))
|
#foreach($fq in $params.getParams('fq'))
|
||||||
#set($previous_fq_count=$velocityCount - 1)
|
#set($previous_fq_count=$velocityCount - 1)
|
||||||
|
@ -21,9 +24,6 @@
|
||||||
<pre style="display:none">$response.response.debug.parsedquery</pre>
|
<pre style="display:none">$response.response.debug.parsedquery</pre>
|
||||||
#end
|
#end
|
||||||
</form>
|
</form>
|
||||||
<script language="text/javascript">
|
|
||||||
$("input[type=text]").autoSuggest("/solr/suggest", {selectedItemProp: "name", searchObjProps: "name"}});
|
|
||||||
</script>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
#if($response.response.spellcheck.suggestions and $response.response.spellcheck.suggestions.size() > 0)
|
#if($response.response.spellcheck.suggestions and $response.response.spellcheck.suggestions.size() > 0)
|
||||||
|
|
Loading…
Reference in New Issue