1 | # Licensed to the Apache Software Foundation (ASF) under one or more |
---|
2 | # contributor license agreements. See the NOTICE file distributed with |
---|
3 | # this work for additional information regarding copyright ownership. |
---|
4 | # The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
5 | # (the "License"); you may not use this file except in compliance with |
---|
6 | # the License. You may obtain a copy of the License at |
---|
7 | # |
---|
8 | # http://www.apache.org/licenses/LICENSE-2.0 |
---|
9 | # |
---|
10 | # Unless required by applicable law or agreed to in writing, software |
---|
11 | # distributed under the License is distributed on an "AS IS" BASIS, |
---|
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
13 | # See the License for the specific language governing permissions and |
---|
14 | # limitations under the License. |
---|
15 | |
---|
16 | Solr example configuration |
---|
17 | -------------------------- |
---|
18 | |
---|
19 | To run the default example configuration, use |
---|
20 | |
---|
21 | java -jar start.jar |
---|
22 | |
---|
23 | in this example directory, and when Solr is started connect to |
---|
24 | |
---|
25 | http://localhost:8983/solr/admin/ |
---|
26 | |
---|
27 | To add documents to the index, use the post.jar (or post.sh script) in |
---|
28 | the exampledocs subdirectory (while Solr is running), for example: |
---|
29 | |
---|
30 | cd exampledocs |
---|
31 | java -jar post.jar *.xml |
---|
32 | Or: sh post.sh *.xml |
---|
33 | |
---|
34 | See also README.txt in the solr subdirectory, and check |
---|
35 | http://wiki.apache.org/solr/SolrResources for a list of tutorials and |
---|
36 | introductory articles. |
---|
37 | |
---|
38 | NOTE: This Solr example server references certain Solr jars outside of |
---|
39 | this server directory for non-core modules with <lib> statements in |
---|
40 | solrconfig.xml. If you make a copy of this example server and wish |
---|
41 | to use the ExtractingRequestHandler (SolrCell), DataImportHandler (DIH), |
---|
42 | UIMA, the clustering component, or other modules in "contrib", |
---|
43 | you will need to copy the required jars into solr/lib or update the paths to |
---|
44 | the jars in your solrconfig.xml. |
---|
45 | |
---|
46 | By default, start.jar starts Solr in Jetty using the default solr home |
---|
47 | directory of "./solr/" -- To run other example configurations, you can |
---|
48 | speciy the solr.solr.home system property when starting jetty... |
---|
49 | |
---|
50 | java -Dsolr.solr.home=multicore -jar start.jar |
---|
51 | java -Dsolr.solr.home=example-DIH -jar start.jar |
---|
52 | |
---|