You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by gs...@apache.org on 2010/10/21 22:33:19 UTC

svn commit: r1026130 - /lucene/dev/trunk/solr/example/solr/conf/velocity/query.vm

Author: gsingers
Date: Thu Oct 21 20:33:19 2010
New Revision: 1026130

URL: http://svn.apache.org/viewvc?rev=1026130&view=rev
Log:
SOLR-2178: fixed minor issue on landing /browse

Modified:
    lucene/dev/trunk/solr/example/solr/conf/velocity/query.vm

Modified: lucene/dev/trunk/solr/example/solr/conf/velocity/query.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/velocity/query.vm?rev=1026130&r1=1026129&r2=1026130&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/velocity/query.vm (original)
+++ lucene/dev/trunk/solr/example/solr/conf/velocity/query.vm Thu Oct 21 20:33:19 2010
@@ -5,7 +5,7 @@
       <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>
       <span >
         #set($loc = $request.params.get('pt'))
-        #set($dist = $request.params.get('d'))
+        #set($dist = $request.params.get('d', "10"))
         <label #annTitle("Add the &pt parameter")>Location Filter:
           <select id="pt" name="pt">
             <option value="none" #if($loc == '')selected="true"#end>No Filter</option>
@@ -15,7 +15,7 @@
             <option value="37.7752,-122.4232" #if($loc == '37.7752,-122.4232')selected="true"#end>San Francisco CA</option>
           </select>
         </label>
-        <span #annTitle("Add the &d parameter")>Distance (KM): <input id="d" name="d" type="text" size="6" value="#if($dist != '')$dist#{else}10#end"/></span>
+        <span #annTitle("Add the &d parameter")>Distance (KM): <input id="d" name="d" type="text" size="6" value="#if($dist != '')${dist}#{else}10#end"/></span>
         <input type="hidden" name="sfield" value="store"/>
         <input type="hidden" id="spatialFQ" name="fq" value=""/>
       </div>