README.txt 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. Welcome to the Apache Solr project!
  16. -----------------------------------
  17. Solr is the popular, blazing fast open source enterprise search platform
  18. from the Apache Lucene project.
  19. For a complete description of the Solr project, team composition, source
  20. code repositories, and other details, please see the Solr web site at
  21. http://lucene.apache.org/solr
  22. Getting Started
  23. ---------------
  24. To start Solr for the first time after installation, simply do:
  25. bin/solr start
  26. This will launch a standalone Solr server in the background of your shell,
  27. listening on port 8983. Alternatively, you can launch Solr in "cloud" mode,
  28. which allows you to scale out using sharding and replication. To launch Solr
  29. in cloud mode, do:
  30. bin/solr start -cloud
  31. To see all available options for starting Solr, please do:
  32. bin/solr start -help
  33. After starting Solr, create either a core or collection depending on whether
  34. Solr is running in standalone (core) or SolrCloud mode (collection) by doing:
  35. bin/solr create -c <name>
  36. This will create a collection that uses a data-driven schema which tries to guess
  37. the correct field type when you add documents to the index. To see all available
  38. options for creating a new collection, execute:
  39. bin/solr create -help
  40. After starting Solr, direct your Web browser to the Solr Admin Console at:
  41. http://localhost:8983/solr/
  42. When finished with your Solr installation, shut it down by executing:
  43. bin/solr stop -all
  44. The `-p PORT` option can also be used to identify the Solr instance to shutdown,
  45. where more than one Solr is running on the machine.
  46. Solr Examples
  47. ---------------
  48. Solr includes a few examples to help you get started. To run a specific example, do:
  49. bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:
  50. cloud : SolrCloud example
  51. dih : Data Import Handler (rdbms, mail, atom, tika)
  52. schemaless : Schema-less example (schema is inferred from data during indexing)
  53. techproducts : Kitchen sink example providing comprehensive examples of Solr features
  54. For instance, if you want to run the Solr Data Import Handler example, do:
  55. bin/solr -e dih
  56. Indexing Documents
  57. ---------------
  58. To add documents to the index, use bin/post. For example:
  59. bin/post -c <collection_name> example/exampledocs/*.xml
  60. For more information about Solr examples please read...
  61. * example/README.txt
  62. For more information about the "Solr Home" and Solr specific configuration
  63. * https://lucene.apache.org/solr/guide/solr-tutorial.html
  64. For a Solr tutorial
  65. * http://lucene.apache.org/solr/resources.html
  66. For a list of other tutorials and introductory articles.
  67. or linked from "docs/index.html" in a binary distribution.
  68. Also, there are Solr clients for many programming languages, see
  69. http://wiki.apache.org/solr/IntegratingSolr
  70. Files included in an Apache Solr binary distribution
  71. ----------------------------------------------------
  72. server/
  73. A self-contained Solr instance, complete with a sample
  74. configuration and documents to index. Please see: bin/solr start -help
  75. for more information about starting a Solr server.
  76. example/
  77. Contains example documents and an alternative Solr home
  78. directory containing examples of how to use the Data Import Handler,
  79. see example/example-DIH/README.txt for more information.
  80. dist/solr-<component>-XX.jar
  81. The Apache Solr libraries. To compile Apache Solr Plugins,
  82. one or more of these will be required. The core library is
  83. required at a minimum. (see http://wiki.apache.org/solr/SolrPlugins
  84. for more information).
  85. docs/index.html
  86. A link to the online version of Apache Solr Javadoc API documentation and Tutorial
  87. Instructions for Building Apache Solr from Source
  88. -------------------------------------------------
  89. 1. Download the Java SE 8 JDK (Java Development Kit) or later from http://www.oracle.com/java/
  90. You will need the JDK installed, and the $JAVA_HOME/bin (Windows: %JAVA_HOME%\bin)
  91. folder included on your command path. To test this, issue a "java -version" command
  92. from your shell (command prompt) and verify that the Java version is 1.8 or later.
  93. 2. Download the Apache Ant binary distribution (1.8.2+) from
  94. http://ant.apache.org/ You will need Ant installed and the $ANT_HOME/bin (Windows:
  95. %ANT_HOME%\bin) folder included on your command path. To test this, issue a
  96. "ant -version" command from your shell (command prompt) and verify that Ant is
  97. available.
  98. You will also need to install Apache Ivy binary distribution (2.2.0) from
  99. http://ant.apache.org/ivy/ and place ivy-2.2.0.jar file in ~/.ant/lib -- if you skip
  100. this step, the Solr build system will offer to do it for you.
  101. 3. Download the Apache Solr distribution, linked from the above web site.
  102. Unzip the distribution to a folder of your choice, e.g. C:\solr or ~/solr
  103. Alternately, you can obtain a copy of the latest Apache Solr source code
  104. directly from the GIT repository:
  105. http://lucene.apache.org/solr/versioncontrol.html
  106. 4. Navigate to the "solr" folder and issue an "ant" command to see the available options
  107. for building, testing, and packaging Solr.
  108. NOTE:
  109. To see Solr in action, you may want to use the "ant server" command to build
  110. and package Solr into the server directory. See also server/README.txt.
  111. Export control
  112. -------------------------------------------------
  113. This distribution includes cryptographic software. The country in
  114. which you currently reside may have restrictions on the import,
  115. possession, use, and/or re-export to another country, of
  116. encryption software. BEFORE using any encryption software, please
  117. check your country's laws, regulations and policies concerning the
  118. import, possession, or use, and re-export of encryption software, to
  119. see if this is permitted. See <http://www.wassenaar.org/> for more
  120. information.
  121. The U.S. Government Department of Commerce, Bureau of Industry and
  122. Security (BIS), has classified this software as Export Commodity
  123. Control Number (ECCN) 5D002.C.1, which includes information security
  124. software using or performing cryptographic functions with asymmetric
  125. algorithms. The form and manner of this Apache Software Foundation
  126. distribution makes it eligible for export under the License Exception
  127. ENC Technology Software Unrestricted (TSU) exception (see the BIS
  128. Export Administration Regulations, Section 740.13) for both object
  129. code and source code.
  130. The following provides more details on the included cryptographic
  131. software:
  132. Apache Solr uses the Apache Tika which uses the Bouncy Castle generic encryption libraries for
  133. extracting text content and metadata from encrypted PDF files.
  134. See http://www.bouncycastle.org/ for more details on Bouncy Castle.