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/20 15:43:33 UTC
svn commit: r1025570 - in /lucene/dev/trunk/solr/example/solr/conf/velocity:
browse.vm main.css
Author: gsingers
Date: Wed Oct 20 13:43:33 2010
New Revision: 1025570
URL: http://svn.apache.org/viewvc?rev=1025570&view=rev
Log:
SOLR-2178: some more additions to demonstrate things like function queries in an easy way
Modified:
lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm
lucene/dev/trunk/solr/example/solr/conf/velocity/main.css
Modified: lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm?rev=1025570&r1=1025569&r2=1025570&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm (original)
+++ lucene/dev/trunk/solr/example/solr/conf/velocity/browse.vm Wed Oct 20 13:43:33 2010
@@ -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/trunk/solr/example/solr/conf/velocity/main.css
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/velocity/main.css?rev=1025570&r1=1025569&r2=1025570&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/velocity/main.css (original)
+++ lucene/dev/trunk/solr/example/solr/conf/velocity/main.css Wed Oct 20 13:43:33 2010
@@ -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;