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 2011/03/02 16:27:27 UTC

svn commit: r1076252 - in /lucene/dev/branches/branch_3x: ./ lucene/ solr/ solr/example/solr/conf/solrconfig.xml solr/example/solr/conf/velocity/browse.vm solr/example/solr/conf/velocity/main.css

Author: gsingers
Date: Wed Mar  2 15:27:27 2011
New Revision: 1076252

URL: http://svn.apache.org/viewvc?rev=1076252&view=rev
Log:
SOLR-2178, SOLR-2177: start the 3.x backport

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/solr/   (props changed)
    lucene/dev/branches/branch_3x/solr/example/solr/conf/solrconfig.xml
    lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/browse.vm
    lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/main.css

Modified: lucene/dev/branches/branch_3x/solr/example/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/example/solr/conf/solrconfig.xml?rev=1076252&r1=1076251&r2=1076252&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/example/solr/conf/solrconfig.xml (original)
+++ lucene/dev/branches/branch_3x/solr/example/solr/conf/solrconfig.xml Wed Mar  2 15:27:27 2011
@@ -770,6 +770,9 @@
     -->
   <requestHandler name="/browse" class="solr.SearchHandler">
      <lst name="defaults">
+       <str name="echoParams">explicit</str>
+
+       <!-- VelocityResponseWriter settings -->
        <str name="wt">velocity</str>
 
        <str name="v.template">browse</str>

Modified: lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/browse.vm
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/browse.vm?rev=1076252&r1=1076251&r2=1076252&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/browse.vm (original)
+++ lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/browse.vm Wed Mar  2 15:27:27 2011
@@ -5,8 +5,9 @@
 <div class="query-box">
   <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'))"/>
+    
+    <div class="inputs"><span>Find: <input type="text" id="q" name="q" value="$!esc.html($params.get('q'))"/> <input type="submit"/> <input type="reset"/></span>
+    <div class="query-boost"><input type="checkbox" name="bf" value="price" #if($response.responseHeader.params.bf == 'price')CHECKED#end>Boost by Price</input> </div></div>
     #if($request.params.get('debugQuery'))
       <input type="hidden" name="debugQuery" value="true"/>
     #end

Modified: lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/main.css
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/main.css?rev=1076252&r1=1076251&r2=1076252&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/main.css (original)
+++ lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/main.css Wed Mar  2 15:27:27 2011
@@ -90,7 +90,7 @@ a {
   letter-spacing: 0.08em;
 }
 
-.query-box input {
+.query-box #q {
   margin-left: 8px;
   width: 60%;
   height: 50px;
@@ -104,6 +104,20 @@ a {
   position: relative;
 }
 
+.query-boost {
+  width: 20%;
+  top: 10px;
+  left: 50px;
+  position: relative;
+  font-size: 0.8em;
+}
+
+.query-box .inputs{
+  left: 180px;
+  top: -20px;
+  position: relative;
+}
+
 #logo {
   top: 35px;
   position: relative;