Monday, April 19, 2010

Directory Structure for SOLR

A Solr home directory contains Solr's configuration and data for a running Solr instance.Solr home directory when it contains either
a solr.xml file or if it contains both a
conf and a data directory,though strictly speaking these might not be the
actual requirements

The SOLR Folder and file Structure


bin: Suggested directory to place Solr replication scripts, if you have a more advanced setup.


conf: Configuration files. The two I mention below are very important, but it will also contain some other .txt and .xml files, which are referenced by these two files for different things such as special text analysis steps.

conf/schema.xml: This is the schema for the index including field type definitions with associated analyzer chains.

conf/solrconfig.xml: This is the primary Solr configuration file.

conf/xslt: This directory contains various XSLT files that can be used to transform Solr's XML query responses into formats such as Atom/RSS.

data: Contains the actual Lucene index data. It's binary data, so you won't be doing anything with it except perhaps deleting it occasionally.

lib: Optional placement of extra Java JAR files that Solr will load on startup, allowing you to externalize plugins from the Solr distribution (the WAR file) for convenience. If you extend Solr without modifying Solr itself, then those modifications can be deployed in a JAR file here.

0 comments:

Post a Comment