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
|
@ -319,6 +319,8 @@ Documentation
|
||||||
* SOLR-1792: Documented peculiar behavior of TestHarness.LocalRequestFactory
|
* SOLR-1792: Documented peculiar behavior of TestHarness.LocalRequestFactory
|
||||||
(hossman)
|
(hossman)
|
||||||
|
|
||||||
|
* SOLR-1848: Added in http://localhost:8983/solr/example/queries.html to demonstrate Queries in the Example.
|
||||||
|
|
||||||
================== Release 1.4.0 ==================
|
================== Release 1.4.0 ==================
|
||||||
Release Date: See http://lucene.apache.org/solr for the official release date.
|
Release Date: See http://lucene.apache.org/solr for the official release date.
|
||||||
|
|
||||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -163,4 +163,4 @@ p {
|
||||||
.codefrag {
|
.codefrag {
|
||||||
font-family: "Courier New", Courier, monospace;
|
font-family: "Courier New", Courier, monospace;
|
||||||
font-size: 110%;
|
font-size: 110%;
|
||||||
}
|
}
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 308 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 207 B |
|
@ -51,4 +51,4 @@ a:link, a:visited {
|
||||||
|
|
||||||
acronym {
|
acronym {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
|
@ -172,4 +172,4 @@ a:hover { color:#6587ff}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -584,4 +584,4 @@ p.instruction {
|
||||||
list-style-image: url('../images/instruction_arrow.png');
|
list-style-image: url('../images/instruction_arrow.png');
|
||||||
list-style-position: outside;
|
list-style-position: outside;
|
||||||
margin-left: 2em;
|
margin-left: 2em;
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
<meta content="Apache Forrest" name="Generator">
|
<meta content="Apache Forrest" name="Generator">
|
||||||
<meta name="Forrest-version" content="0.8">
|
<meta name="Forrest-version" content="0.8">
|
||||||
<meta name="Forrest-skin-name" content="lucene">
|
<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 type="text/css" href="skin/basic.css" rel="stylesheet">
|
||||||
<link media="screen" type="text/css" href="skin/screen.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">
|
<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">
|
||||||
|
@ -157,7 +157,7 @@ document.write("Last Published: " + document.lastModified);
|
||||||
</div>
|
</div>
|
||||||
<div id="credit">
|
<div id="credit">
|
||||||
<hr>
|
<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>
|
||||||
<div id="roundbottom">
|
<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>
|
<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>
|
</div>
|
||||||
<h1>Solr tutorial</h1>
|
<h1>Solr tutorial</h1>
|
||||||
<div id="motd-area">
|
<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>
|
||||||
<div id="minitoc-area">
|
<div id="minitoc-area">
|
||||||
<ul class="minitoc">
|
<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
|
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.
|
that allows setting the various request parameters and is useful when trying out or debugging queries.
|
||||||
</p>
|
</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>
|
<h3 class="boxed">Sorting</h3>
|
||||||
<p>
|
<p>
|
||||||
Solr provides a simple method to sort on one or more indexed fields.
|
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>
|
<h2 class="boxed">Highlighting</h2>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<p>
|
<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>
|
<h2 class="boxed">Faceted Search</h2>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<p>
|
<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>
|
<h2 class="boxed">Text Analysis</h2>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<p>
|
<p>
|
||||||
|
@ -689,7 +690,7 @@ in subsequent searches.
|
||||||
<p>A full description of the analysis components, Analyzers, Tokenizers, and TokenFilters
|
<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>.
|
available for use is <a href="http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters">here</a>.
|
||||||
</p>
|
</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>
|
<h3 class="boxed">Analysis Debugging</h3>
|
||||||
<p>There is a handy <a href="http://localhost:8983/solr/admin/analysis.jsp">analysis</a>
|
<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,
|
debugging page where you can see how a text value is broken down into words,
|
||||||
|
@ -718,7 +719,7 @@ in subsequent searches.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<a name="N102D0"></a><a name="Conclusion"></a>
|
<a name="N102D7"></a><a name="Conclusion"></a>
|
||||||
<h2 class="boxed">Conclusion</h2>
|
<h2 class="boxed">Conclusion</h2>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -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
|
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.
|
that allows setting the various request parameters and is useful when trying out or debugging queries.
|
||||||
</p>
|
</p>
|
||||||
|
<p>See the example <a href="http://localhost:8983/solr/example/queries.html">queries</a> page for more sample Solr interactions.</p>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title>Sorting</title>
|
<title>Sorting</title>
|
||||||
|
|