source: gs3-extensions/solr/trunk/src/conf/velocity/query.vm@ 29135

Last change on this file since 29135 was 29135, checked in by ak19, 10 years ago

Part of port from lucene3.3.0 to lucene4.7.2. Solr related. conf and lib folders for solr4.7.2.

File size: 1.9 KB
Line 
1<div class="query-box">
2 <form id="query-form" action="#{url_for_home}" method="GET">
3 <div class="inputs">
4 <span #annTitle("Add the query using the &q= parameter")>Find: <input type="text" id="q" name="q" value="$!esc.html($params.get('q'))"/> <input type="submit" id="querySubmit"/> <input type="reset"/></span>
5 <div class="query-boost"><span #annTitle("Add the boost function &bf=price to the query")><input type="checkbox" name="bf" value="price" #if($request.params.get('bf') == 'price')checked="true"#end>Boost by Price</input></span>
6 #parse("querySpatial.vm")
7 #parse("queryGroup.vm")
8 </div>
9 </div>
10
11 #if($request.params.get('debugQuery'))
12 <input type="hidden" name="debugQuery" value="true"/>
13 #end
14 #if($annotate == true)
15 <input type="hidden" name="annotateBrowse" value="true"/>
16 #end
17 #foreach($fq in $request.params.getParams('fq'))
18 #if ($fq != "{!bbox}")
19 <input type="hidden" name="fq" id="allFQs" value="$esc.html($fq)"/>
20 #end
21 #end
22 <div class="constraints" #annTitle("Lists out the &fq filters. Click to remove.")>
23 #foreach($fq in $params.getParams('fq'))
24 #set($previous_fq_count=$velocityCount - 1)
25 #if($fq != '')
26 &gt; <a style="{text-decoration: line-through;}" href="#url_for_filters($request.params.getParams('fq').subList(0,$previous_fq_count))">$fq</a>
27 #end
28 #end
29 </div>
30 <div class="parsed_query_header">
31 #if($request.params.get('debugQuery'))
32 <a href="#" onclick='jQuery(this).siblings("div").toggle(); return false;'>toggle parsed query</a>
33 <div class="parsed_query" style="display:none">$response.response.debug.parsedquery</div>
34 #end
35 #set($queryOpts = $request.params.get("queryOpts"))
36 #if($queryOpts && $queryOpts != "")
37 <input type="hidden" name="queryOpts" value="$queryOpts"/>
38 #end
39 </div>
40 </form>
41
42</div>
Note: See TracBrowser for help on using the repository browser.