You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by gs...@apache.org on 2010/03/26 18:33:38 UTC
svn commit: r927977 - in /lucene/dev/trunk/solr: ./ example/contexts/
example/static/ site/ site/skin/ site/skin/images/
src/site/src/documentation/content/xdocs/
Author: gsingers
Date: Fri Mar 26 17:33:38 2010
New Revision: 927977
URL: http://svn.apache.org/viewvc?rev=927977&view=rev
Log:
SOLR-1848: add in static sample queries for the example
Added:
lucene/dev/trunk/solr/example/contexts/
lucene/dev/trunk/solr/example/contexts/static-content.xml (with props)
lucene/dev/trunk/solr/example/static/
lucene/dev/trunk/solr/example/static/queries.html (with props)
Modified:
lucene/dev/trunk/solr/CHANGES.txt
lucene/dev/trunk/solr/site/skin/basic.css
lucene/dev/trunk/solr/site/skin/images/rc-b-l-15-1body-2menu-3menu.png
lucene/dev/trunk/solr/site/skin/images/rc-b-r-15-1body-2menu-3menu.png
lucene/dev/trunk/solr/site/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png
lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png
lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png
lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png
lucene/dev/trunk/solr/site/skin/images/rc-t-r-15-1body-2menu-3menu.png
lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png
lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png
lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png
lucene/dev/trunk/solr/site/skin/print.css
lucene/dev/trunk/solr/site/skin/profile.css
lucene/dev/trunk/solr/site/skin/screen.css
lucene/dev/trunk/solr/site/tutorial.html
lucene/dev/trunk/solr/site/tutorial.pdf
lucene/dev/trunk/solr/src/site/src/documentation/content/xdocs/tutorial.xml
Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Fri Mar 26 17:33:38 2010
@@ -319,6 +319,8 @@ Documentation
* SOLR-1792: Documented peculiar behavior of TestHarness.LocalRequestFactory
(hossman)
+* SOLR-1848: Added in http://localhost:8983/solr/example/queries.html to demonstrate Queries in the Example.
+
================== Release 1.4.0 ==================
Release Date: See http://lucene.apache.org/solr for the official release date.
Added: lucene/dev/trunk/solr/example/contexts/static-content.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/contexts/static-content.xml?rev=927977&view=auto
==============================================================================
--- lucene/dev/trunk/solr/example/contexts/static-content.xml (added)
+++ lucene/dev/trunk/solr/example/contexts/static-content.xml Fri Mar 26 17:33:38 2010
@@ -0,0 +1,8 @@
+<Configure class="org.mortbay.jetty.servlet.Context">
+ <Set name="contextPath">/solr/example</Set>
+ <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/static/</Set>
+ <Call name="addServlet">
+ <Arg>org.mortbay.jetty.servlet.DefaultServlet</Arg>
+ <Arg>/</Arg>
+ </Call>
+</Configure>
Propchange: lucene/dev/trunk/solr/example/contexts/static-content.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: lucene/dev/trunk/solr/example/static/queries.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/static/queries.html?rev=927977&view=auto
==============================================================================
--- lucene/dev/trunk/solr/example/static/queries.html (added)
+++ lucene/dev/trunk/solr/example/static/queries.html Fri Mar 26 17:33:38 2010
@@ -0,0 +1,45 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<html>
+<head>
+<link rel="stylesheet" type="text/css" href="solr-admin.css">
+<link rel="icon" href="favicon.ico" type="image/ico"></link>
+<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
+<title>Welcome to Solr</title>
+</head>
+
+<body>
+<h1>Welcome to Solr!</h1>
+<a href="."><img border="0" align="right" height="78" width="142" src="../../solr/admin/solr_small.png" alt="Solr"/></a>
+<h1>Sample Queries</h1>
+<!--
+TODO: Add tutorial examples here, too
+-->
+<p>The following queries below can be used to try out different queries against the Solr example. This assumes you have indexed documents first. See the <a href="http://lucene.apache.org/solr/tutorial.html">Solr Tutorial</a> for more info on indexing.</p>
+<h2>Basics</h2>
+<ul>
+ <li>Match All Docs: <a href="../../solr/select/?q=*:*">http://localhost:8983/solr/select/?q=*:*</a></li>
+ <li>Term Query: <a href="../../solr/select/?q=text:ipod">http://localhost:8983/solr/select/?q=text:ipod</a></li>
+ <li>Phrase: <a href="../../solr/select/?q=text:"Belkin Mobile"">http://localhost:8983/solr/select/?q=text:"Belkin Mobile"</a></li>
+</ul>
+<h2>Spatial</h2>
+<ul>
+ <li>Boost By Distance: <a href="../../solr/select/?q=_val_:"recip(dist(2, store,vector(34.0232,-81.0664)),1,1,0)"&fl=*,score">http://localhost:8983/solr/select/?q=_val_:"recip(dist(2, store, vector(34.0232,-81.0664)),1,1,0)"&fl=*,score</a>
+</ul>
+</body>
+</html>
\ No newline at end of file
Propchange: lucene/dev/trunk/solr/example/static/queries.html
------------------------------------------------------------------------------
svn:eol-style = native
Modified: lucene/dev/trunk/solr/site/skin/basic.css
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/basic.css?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
--- lucene/dev/trunk/solr/site/skin/basic.css (original)
+++ lucene/dev/trunk/solr/site/skin/basic.css Fri Mar 26 17:33:38 2010
@@ -163,4 +163,4 @@ p {
.codefrag {
font-family: "Courier New", Courier, monospace;
font-size: 110%;
-}
+}
\ No newline at end of file
Modified: lucene/dev/trunk/solr/site/skin/images/rc-b-l-15-1body-2menu-3menu.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-b-l-15-1body-2menu-3menu.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-b-r-15-1body-2menu-3menu.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-b-r-15-1body-2menu-3menu.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-t-r-15-1body-2menu-3menu.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-t-r-15-1body-2menu-3menu.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/site/skin/print.css
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/print.css?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
--- lucene/dev/trunk/solr/site/skin/print.css (original)
+++ lucene/dev/trunk/solr/site/skin/print.css Fri Mar 26 17:33:38 2010
@@ -51,4 +51,4 @@ a:link, a:visited {
acronym {
border: 0;
-}
+}
\ No newline at end of file
Modified: lucene/dev/trunk/solr/site/skin/profile.css
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/profile.css?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
--- lucene/dev/trunk/solr/site/skin/profile.css (original)
+++ lucene/dev/trunk/solr/site/skin/profile.css Fri Mar 26 17:33:38 2010
@@ -172,4 +172,4 @@ a:hover { color:#6587ff}
}
-
+
\ No newline at end of file
Modified: lucene/dev/trunk/solr/site/skin/screen.css
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/skin/screen.css?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
--- lucene/dev/trunk/solr/site/skin/screen.css (original)
+++ lucene/dev/trunk/solr/site/skin/screen.css Fri Mar 26 17:33:38 2010
@@ -584,4 +584,4 @@ p.instruction {
list-style-image: url('../images/instruction_arrow.png');
list-style-position: outside;
margin-left: 2em;
-}
+}
\ No newline at end of file
Modified: lucene/dev/trunk/solr/site/tutorial.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/tutorial.html?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
--- lucene/dev/trunk/solr/site/tutorial.html (original)
+++ lucene/dev/trunk/solr/site/tutorial.html Fri Mar 26 17:33:38 2010
@@ -5,7 +5,7 @@
<meta content="Apache Forrest" name="Generator">
<meta name="Forrest-version" content="0.8">
<meta name="Forrest-skin-name" content="lucene">
-<title>Solr tutorial (version 3.0.0.2010.03.26.09.09.44)</title>
+<title>Solr tutorial (version 3.0.0.2010.03.26.12.34.39)</title>
<link type="text/css" href="skin/basic.css" rel="stylesheet">
<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">
<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">
@@ -157,7 +157,7 @@ document.write("Last Published: " + docu
</div>
<div id="credit">
<hr>
- This document is for Apache Solr version 3.0.0.2010.03.26.09.09.44. If you are using a different version of Solr, please consult the documentation that was distributed with the version you are using.
+ This document is for Apache Solr version 3.0.0.2010.03.26.12.34.39. If you are using a different version of Solr, please consult the documentation that was distributed with the version you are using.
</div>
<div id="roundbottom">
<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>
@@ -181,7 +181,7 @@ document.write("Last Published: " + docu
</div>
<h1>Solr tutorial</h1>
<div id="motd-area">
- This document is for Apache Solr version 3.0.0.2010.03.26.09.09.44. If you are using a different version of Solr, please consult the documentation that was distributed with the version you are using.
+ This document is for Apache Solr version 3.0.0.2010.03.26.12.34.39. If you are using a different version of Solr, please consult the documentation that was distributed with the version you are using.
</div>
<div id="minitoc-area">
<ul class="minitoc">
@@ -519,7 +519,8 @@ in subsequent searches.
Solr provides a <a href="http://localhost:8983/solr/admin/form.jsp">query form</a> within the web admin interface
that allows setting the various request parameters and is useful when trying out or debugging queries.
</p>
-<a name="N10194"></a><a name="Sorting"></a>
+<p>See the example <a href="http://localhost:8983/solr/example/queries.html">queries</a> page for more sample Solr interactions.</p>
+<a name="N1019B"></a><a name="Sorting"></a>
<h3 class="boxed">Sorting</h3>
<p>
Solr provides a simple method to sort on one or more indexed fields.
@@ -561,7 +562,7 @@ in subsequent searches.
-<a name="N101C7"></a><a name="Highlighting"></a>
+<a name="N101CE"></a><a name="Highlighting"></a>
<h2 class="boxed">Highlighting</h2>
<div class="section">
<p>
@@ -588,7 +589,7 @@ in subsequent searches.
-<a name="N101F0"></a><a name="Faceted+Search"></a>
+<a name="N101F7"></a><a name="Faceted+Search"></a>
<h2 class="boxed">Faceted Search</h2>
<div class="section">
<p>
@@ -647,7 +648,7 @@ in subsequent searches.
-<a name="N10241"></a><a name="Text+Analysis"></a>
+<a name="N10248"></a><a name="Text+Analysis"></a>
<h2 class="boxed">Text Analysis</h2>
<div class="section">
<p>
@@ -689,7 +690,7 @@ in subsequent searches.
<p>A full description of the analysis components, Analyzers, Tokenizers, and TokenFilters
available for use is <a href="http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters">here</a>.
</p>
-<a name="N10291"></a><a name="Analysis+Debugging"></a>
+<a name="N10298"></a><a name="Analysis+Debugging"></a>
<h3 class="boxed">Analysis Debugging</h3>
<p>There is a handy <a href="http://localhost:8983/solr/admin/analysis.jsp">analysis</a>
debugging page where you can see how a text value is broken down into words,
@@ -718,7 +719,7 @@ in subsequent searches.
</div>
-<a name="N102D0"></a><a name="Conclusion"></a>
+<a name="N102D7"></a><a name="Conclusion"></a>
<h2 class="boxed">Conclusion</h2>
<div class="section">
<p>
Modified: lucene/dev/trunk/solr/site/tutorial.pdf
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/site/tutorial.pdf?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
Binary files - no diff available.
Modified: lucene/dev/trunk/solr/src/site/src/documentation/content/xdocs/tutorial.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/site/src/documentation/content/xdocs/tutorial.xml?rev=927977&r1=927976&r2=927977&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/site/src/documentation/content/xdocs/tutorial.xml (original)
+++ lucene/dev/trunk/solr/src/site/src/documentation/content/xdocs/tutorial.xml Fri Mar 26 17:33:38 2010
@@ -289,6 +289,7 @@ in subsequent searches.
Solr provides a <a href="http://localhost:8983/solr/admin/form.jsp">query form</a> within the web admin interface
that allows setting the various request parameters and is useful when trying out or debugging queries.
</p>
+<p>See the example <a href="http://localhost:8983/solr/example/queries.html">queries</a> page for more sample Solr interactions.</p>
<section>
<title>Sorting</title>