lucene/solr/server
Alexandre Rafalovitch a57ba25400
SOLR-14783: Remove DIH from 9.0 (#1794)
* Remove DIH example directory

* Remove contrib code directories

* Remove contrib package related configurations for build tools

* Remove mention of DIH example

* remove dih as build dependencies and no-longer needed version pins

* Remove README references to DIH

* Remove dih mention from the script that probably does need to exist at all

* More build artifact references

* More removed dependencies leftovers (licenses/versions)

* No need to smoke exclude DIH anymore

* Remove Admin UI's DIH integration

* Remove DIH from shortname package list

* Remove unused DIH (related? not?) dataset
Unclear what is happening here, but there is no reference to that directory anywhere else
The other parallel directories ARE referenced in a TestConfigSetsAPI.java

* Hidden Idea files references

* No DIH to ignore anymore

* Remove last Derby DB references

* Remove DIH from documentation
Add the information in Major Changes document with the link to the external repo

* Added/updated a mention to CHANGES

* Fix leftover library mentions

* Fix Spellings
2020-08-29 10:52:04 -04:00
..
contexts SOLR-7227: Don't create the WAR file at all 2015-07-28 19:04:21 +00:00
etc SOLR-14783: Remove DIH from 9.0 (#1794) 2020-08-29 10:52:04 -04:00
modules SOLR-14138: enable request log via environ var, remove deprecated jetty class usage, respect SOLR_LOGS_DIR (#1110) 2019-12-23 10:37:31 -05:00
resources SOLR-13286 Quiet down metrics logging, add a marker to allow any handler to be silenced via log4j2.xml 2020-06-26 18:00:52 -04:00
scripts/cloud-scripts SOLR-14186: Enforce CRLF in Windows files with .gitattributes (#1163) 2020-01-16 08:30:39 -05:00
solr SOLR-14615: Implement CPU Utilization Based Circuit Breaker (#1737) 2020-08-20 13:21:26 +05:30
solr-webapp SOLR-3619: Rename 'example' dir to 'server' 2014-10-31 04:30:52 +00:00
README.md SOLR-14783: Remove DIH from 9.0 (#1794) 2020-08-29 10:52:04 -04:00
build.gradle LUCENE-9321: Port markdown task to Gradle (#1477) 2020-05-17 14:46:26 +02:00

README.md

Solr server

This directory contains an instance of the Jetty Servlet container setup to run Solr.

To run Solr:

  cd $SOLR_INSTALL
  bin/solr start

where $SOLR_INSTALL is the location where you extracted the Solr installation bundle.

Server directory layout

server/contexts

  This directory contains the Jetty Web application deployment descriptor for the Solr Web app.

server/etc

  Jetty configuration and example SSL keystore

server/lib

  Jetty and other 3rd party libraries

server/logs

  Solr log files

server/resources

  Contains configuration files, such as the Log4j configuration (log4j2.xml) for configuring Solr loggers.

server/scripts/cloud-scripts

  Command-line utility for working with ZooKeeper when running in SolrCloud mode, see zkcli.sh / .cmd for
  usage information.

server/solr

  Default solr.solr.home directory where Solr will create core directories; must contain solr.xml

server/solr/configsets

  Directories containing different configuration options for running Solr.

    _default                    : Bare minimum configurations with field-guessing and managed schema turned
                                  on by default, so as to start indexing data in Solr without having to design
                                  a schema upfront. You can use the REST API to manage your schema as you refine your index
                                  requirements. You can turn off the field (for a collection, say mycollection) guessing by:
                                  curl http://host:8983/solr/mycollection/config -d '{"set-user-property": {"update.autoCreateFields":"false"}}'

    sample_techproducts_configs : Comprehensive example configuration that demonstrates many of the powerful
                                  features of Solr, based on the use case of building a search solution for
                                  tech products.

server/solr-webapp

  Contains files used by the Solr server; do not edit files in this directory (Solr is not a Java Web application).

Notes About Solr Examples

SolrHome

By default, start.jar starts Solr in Jetty using the default Solr Home directory of "./solr/" (relative to the working directory of the servlet container).

References to Jar Files Outside This Directory

Various example SolrHome dirs contained in this directory may use "" statements in the solrconfig.xml file to reference plugin jars outside of this directory for loading "contrib" plugins via relative paths.

If you make a copy of this example server and wish to use the ExtractingRequestHandler (SolrCell), the clustering component, or any other modules in "contrib", you will need to copy the required jars or update the paths to those jars in your solrconfig.xml.

Logging

By default, Jetty & Solr will log to the console and logs/solr.log. This can be convenient when first getting started, but eventually you will want to log just to a file. To configure logging, edit the log4j2.xml file in "resources".

It is also possible to setup log4j or other popular logging frameworks.