SOLR-1848: add in static sample queries for the example

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@927977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2010-03-26 17:33:38 +00:00
parent 04560af841
commit 9ab93f2fcc
20 changed files with 378 additions and 291 deletions

View File

@ -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.

View File

@ -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>

View File

@ -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:&quot;Belkin Mobile&quot;">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_:&quot;recip(dist(2, store,vector(34.0232,-81.0664)),1,1,0)&quot;&amp;fl=*,score">http://localhost:8983/solr/select/?q=_val_:"recip(dist(2, store, vector(34.0232,-81.0664)),1,1,0)"&amp;fl=*,score</a>
</ul>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 B

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 207 B

View File

@ -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: " + document.lastModified);
</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: " + document.lastModified);
</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>

File diff suppressed because it is too large Load Diff

View File

@ -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>