lucene/solr
Robert Muir ec43ca9fd8 LUCENE-6165: Change merging APIs from LeafReader to CodecReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1650301 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 14:53:03 +00:00
..
bin SOLR-6900: added usage to bin/post, plus some TODOs 2015-01-06 20:28:53 +00:00
cloud-dev SOLR-6756: A first pass at making the cloud-dev scripts work again. 2014-12-02 17:41:30 +00:00
contrib SOLR-6897: Nuke non-NRT mode from code and configuration 2015-01-06 14:28:08 +00:00
core LUCENE-6165: Change merging APIs from LeafReader to CodecReader 2015-01-08 14:53:03 +00:00
example SOLR-6897: Nuke non-NRT mode from code and configuration 2015-01-06 14:28:08 +00:00
licenses SOLR-4839: fix licensing metadata. PLEASE RUN PRECOMMIT BEFORE COMMITTING. 2015-01-08 14:26:52 +00:00
scripts SOLR-3877: REAMDE file noting the status of the old replication scripts 2012-09-24 18:26:26 +00:00
server SOLR-4839: Remove dependency to jetty.orbit 2015-01-07 21:19:00 +00:00
site SOLR-6058: Include the new Solr logo and favicon in Solritas (/browse UI) as well as in generated per-release Solr documentation; switch all favicon links' Content-Type: 'image/ico'->'image/x-icon' 2014-12-19 01:49:37 +00:00
solrj SOLR-6880: Harden ZkStateReader to expect that getCollectionLive may return null as it's contract states. 2015-01-06 20:53:49 +00:00
test-framework LUCENE-6119: CMS dynamically rate limits IO writes of each merge depending on incoming merge rate 2015-01-05 14:28:28 +00:00
webapp SOLR-5810: basic paged nav support for cloud graph panel for many collections. 2014-12-30 22:38:50 +00:00
CHANGES.txt SOLR-6925: Back out changes having to do with SOLR-5287 (editing configs from admin UI) 2015-01-08 05:15:46 +00:00
LICENSE.txt LUCENE-3965: merge LICENSE/NOTICE.txt and cleanup some outdated inconsistencies 2012-04-18 03:29:38 +00:00
NOTICE.txt SOLR-6488: Upgrade Solr Cell to TIKA 1.6 2014-09-07 20:50:13 +00:00
README.txt SOLR-6852: Updating the CHANGES.txt entry to the 'Upgrading from..' section 2014-12-16 18:12:00 +00:00
SYSTEM_REQUIREMENTS.txt LUCENE-5950: Move to Java 8 as minimum Java version 2014-11-20 22:47:21 +00:00
build.xml SOLR-6851: Scripts to help install and run Solr as a service on Linux 2014-12-23 23:20:42 +00:00
common-build.xml fix all doclint warnings 2014-11-28 03:18:36 +00:00

README.txt

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


Welcome to the Apache Solr project!
-----------------------------------

Solr is the popular, blazing fast open source enterprise search platform
from the Apache Lucene project.

For a complete description of the Solr project, team composition, source
code repositories, and other details, please see the Solr web site at
http://lucene.apache.org/solr


Getting Started
---------------

To start Solr for the first time after installation, simply do:

  bin/solr start

This will launch a Solr server in the background of your shell, bound
to port 8983. After starting Solr, you can create a new core for indexing
your data by doing:

  bin/solr create_core -n <name>

This will create a core that uses a data-driven schema which tries to guess
the correct field type when you add documents to the index. To see all available
options for creating a new core, execute:

  bin/solr create_core -help

Alternatively, you can launch Solr in "cloud" mode, which allows you to scale
out using sharding and replication. To launch Solr in cloud mode, do:

  bin/solr start -cloud

After starting Solr in cloud mode, you can create a new collection for indexing
your data by doing:

  bin/solr create_collection -n <name>

To see all available options for starting Solr, please do:

  bin/solr start -help

After starting Solr, direct your Web browser to the Solr Admin Console at:

  http://localhost:8983/solr/


Solr Examples
---------------

Solr includes a few examples to help you get started. To run a specific example, do:

  bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:

    cloud        : SolrCloud example
    dih          : Data Import Handler (rdbms, mail, rss, tika)
    schemaless   : Schema-less example (schema is inferred from data during indexing)
    techproducts : Kitchen sink example providing comprehensive examples of Solr features

For instance, if you want to run the Solr Data Import Handler example, do:

  bin/solr -e dih


Indexing Documents
---------------

To add documents to the index, use the post.jar (or post.sh script) in
the example/exampledocs subdirectory (while Solr is running), for example:

     cd example/exampledocs
     java -jar -Dc=<collection_name> post.jar *.xml
Or:  sh post.sh *.xml

For more information about Solr examples please read...

 * example/solr/README.txt
   For more information about the "Solr Home" and Solr specific configuration
 * http://lucene.apache.org/solr/tutorial.html
   For a Tutorial using this example configuration
 * http://wiki.apache.org/solr/SolrResources
   For a list of other tutorials and introductory articles.


In addition, Solr ships with several example configurations that
help you learn about Solr. To run one of the examples, you would do:

  bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:

    cloud        : SolrCloud example
    dih          : Data Import Handler (rdbms, mail, rss, tika)
    schemaless   : Schema-less example (schema is inferred from data during indexing)
    techproducts : Kitchen sink example providing comprehensive examples of Solr features


A tutorial is available at:

   http://lucene.apache.org/solr/tutorial.html

or linked from "docs/index.html" in a binary distribution.

Also, there are Solr clients for many programming languages, see 
   http://wiki.apache.org/solr/IntegratingSolr


Files included in an Apache Solr binary distribution
----------------------------------------------------

server/
  A self-contained Solr instance, complete with a sample
  configuration and documents to index. Please see: bin/solr start -help
  for more information about starting a Solr server.

example/
  Contains example documents and an alternative Solr home
  directory containing examples of how to use the Data Import Handler,
  see example/example-DIH/README.txt for more information.

dist/solr-<component>-XX.jar
  The Apache Solr libraries.  To compile Apache Solr Plugins,
  one or more of these will be required.  The core library is
  required at a minimum. (see http://wiki.apache.org/solr/SolrPlugins
  for more information).

docs/index.html
  The Apache Solr Javadoc API documentation and Tutorial


Instructions for Building Apache Solr from Source
-------------------------------------------------

1. Download the Java SE 8 JDK (Java Development Kit) or later from http://www.oracle.com/java/
   You will need the JDK installed, and the $JAVA_HOME/bin (Windows: %JAVA_HOME%\bin) 
   folder included on your command path. To test this, issue a "java -version" command 
   from your shell (command prompt) and verify that the Java version is 1.8 or later.

2. Download the Apache Ant binary distribution (1.8.2+) from 
   http://ant.apache.org/  You will need Ant installed and the $ANT_HOME/bin (Windows: 
   %ANT_HOME%\bin) folder included on your command path. To test this, issue a 
   "ant -version" command from your shell (command prompt) and verify that Ant is 
   available. 

   You will also need to install Apache Ivy binary distribution (2.2.0) from 
   http://ant.apache.org/ivy/ and place ivy-2.2.0.jar file in ~/.ant/lib -- if you skip 
   this step, the Solr build system will offer to do it for you.

3. Download the Apache Solr distribution, linked from the above web site. 
   Unzip the distribution to a folder of your choice, e.g. C:\solr or ~/solr
   Alternately, you can obtain a copy of the latest Apache Solr source code
   directly from the Subversion repository:

     http://lucene.apache.org/solr/versioncontrol.html

4. Navigate to the "solr" folder and issue an "ant" command to see the available options
   for building, testing, and packaging Solr.
  
   NOTE: 
   To see Solr in action, you may want to use the "ant example" command to build
   and package Solr into the server/webapps directory. See also server/README.txt.


Export control
-------------------------------------------------
This distribution includes cryptographic software.  The country in
which you currently reside may have restrictions on the import,
possession, use, and/or re-export to another country, of
encryption software.  BEFORE using any encryption software, please
check your country's laws, regulations and policies concerning the
import, possession, or use, and re-export of encryption software, to
see if this is permitted.  See <http://www.wassenaar.org/> for more
information.

The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms.  The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
code and source code.

The following provides more details on the included cryptographic
software:
    Apache Solr uses the Apache Tika which uses the Bouncy Castle generic encryption libraries for
    extracting text content and metadata from encrypted PDF files.
    See http://www.bouncycastle.org/ for more details on Bouncy Castle.