added config files from solr install
This commit is contained in:
parent
d7e467f96a
commit
63e10b09e2
77
SOLR-README.txt
Normal file
77
SOLR-README.txt
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
|
||||||
|
Default Solr Home Directory
|
||||||
|
=============================
|
||||||
|
|
||||||
|
This directory is the default Solr home directory which holds
|
||||||
|
configuration files and Solr indexes (called cores).
|
||||||
|
|
||||||
|
|
||||||
|
Basic Directory Structure
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
The Solr Home directory typically contains the following...
|
||||||
|
|
||||||
|
* solr.xml *
|
||||||
|
|
||||||
|
This is the primary configuration file Solr looks for when starting;
|
||||||
|
it specifies high-level configuration options that apply to all
|
||||||
|
of your Solr cores, such as cluster-wide SolrCloud settings like
|
||||||
|
the ZooKeeper client timeout.
|
||||||
|
|
||||||
|
In addition, you can also declare Solr cores in this file, however
|
||||||
|
it is recommended to just use automatic core discovery instead of
|
||||||
|
listing cores in solr.xml.
|
||||||
|
|
||||||
|
If no solr.xml file is found, then Solr assumes that there should be
|
||||||
|
a single SolrCore named "collection1" and that the "Instance Directory"
|
||||||
|
for collection1 should be the same as the Solr Home Directory.
|
||||||
|
|
||||||
|
For more information about solr.xml, please see:
|
||||||
|
https://lucene.apache.org/solr/guide/solr-cores-and-solr-xml.html
|
||||||
|
|
||||||
|
* Individual SolrCore Instance Directories *
|
||||||
|
|
||||||
|
Although solr.xml can be configured to look for SolrCore Instance Directories
|
||||||
|
in any path, simple sub-directories of the Solr Home Dir using relative paths
|
||||||
|
are common for many installations.
|
||||||
|
|
||||||
|
* Core Discovery *
|
||||||
|
|
||||||
|
During startup, Solr will scan sub-directories of Solr home looking for
|
||||||
|
a specific file named core.properties. If core.properties is found in a
|
||||||
|
sub-directory (at any depth), Solr will initialize a core using the properties
|
||||||
|
defined in core.properties. For an example of core.properties, please see:
|
||||||
|
|
||||||
|
example/solr/collection1/core.properties
|
||||||
|
|
||||||
|
For more information about core discovery, please see:
|
||||||
|
https://lucene.apache.org/solr/guide/defining-core-properties.html
|
||||||
|
|
||||||
|
* A Shared 'lib' Directory *
|
||||||
|
|
||||||
|
Although solr.xml can be configured with an optional "sharedLib" attribute
|
||||||
|
that can point to any path, it is common to use a "./lib" sub-directory of the
|
||||||
|
Solr Home Directory.
|
||||||
|
|
||||||
|
* ZooKeeper Files *
|
||||||
|
|
||||||
|
When using SolrCloud using the embedded ZooKeeper option for Solr, it is
|
||||||
|
common to have a "zoo.cfg" file and "zoo_data" directories in the Solr Home
|
||||||
|
Directory. Please see the SolrCloud documentation for more details.
|
||||||
|
|
||||||
|
https://lucene.apache.org/solr/guide/solrcloud.html
|
54
solr.xml
Normal file
54
solr.xml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is an example of a simple "solr.xml" file for configuring one or
|
||||||
|
more Solr Cores, as well as allowing Cores to be added, removed, and
|
||||||
|
reloaded via HTTP requests.
|
||||||
|
|
||||||
|
More information about options available in this configuration file,
|
||||||
|
and Solr Core administration can be found online:
|
||||||
|
http://wiki.apache.org/solr/CoreAdmin
|
||||||
|
-->
|
||||||
|
|
||||||
|
<solr>
|
||||||
|
|
||||||
|
<solrcloud>
|
||||||
|
|
||||||
|
<str name="host">${host:}</str>
|
||||||
|
<int name="hostPort">${jetty.port:8983}</int>
|
||||||
|
<str name="hostContext">${hostContext:solr}</str>
|
||||||
|
|
||||||
|
<bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
|
||||||
|
|
||||||
|
<int name="zkClientTimeout">${zkClientTimeout:30000}</int>
|
||||||
|
<int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
|
||||||
|
<int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>
|
||||||
|
<str name="zkCredentialsProvider">${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider}</str>
|
||||||
|
<str name="zkACLProvider">${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider}</str>
|
||||||
|
|
||||||
|
</solrcloud>
|
||||||
|
|
||||||
|
<shardHandlerFactory name="shardHandlerFactory"
|
||||||
|
class="HttpShardHandlerFactory">
|
||||||
|
<int name="socketTimeout">${socketTimeout:600000}</int>
|
||||||
|
<int name="connTimeout">${connTimeout:60000}</int>
|
||||||
|
<str name="shardsWhitelist">${solr.shardsWhitelist:}</str>
|
||||||
|
</shardHandlerFactory>
|
||||||
|
|
||||||
|
</solr>
|
31
zoo.cfg
Normal file
31
zoo.cfg
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# The number of milliseconds of each tick
|
||||||
|
tickTime=2000
|
||||||
|
# The number of ticks that the initial
|
||||||
|
# synchronization phase can take
|
||||||
|
initLimit=10
|
||||||
|
# The number of ticks that can pass between
|
||||||
|
# sending a request and getting an acknowledgement
|
||||||
|
syncLimit=5
|
||||||
|
|
||||||
|
# the directory where the snapshot is stored.
|
||||||
|
# dataDir=/opt/zookeeper/data
|
||||||
|
# NOTE: Solr defaults the dataDir to <solrHome>/zoo_data
|
||||||
|
|
||||||
|
# the port at which the clients will connect
|
||||||
|
# clientPort=2181
|
||||||
|
# NOTE: Solr sets this based on zkRun / zkHost params
|
||||||
|
|
||||||
|
# the maximum number of client connections.
|
||||||
|
# increase this if you need to handle more clients
|
||||||
|
#maxClientCnxns=60
|
||||||
|
#
|
||||||
|
# Be sure to read the maintenance section of the
|
||||||
|
# administrator guide before turning on autopurge.
|
||||||
|
#
|
||||||
|
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
|
||||||
|
#
|
||||||
|
# The number of snapshots to retain in dataDir
|
||||||
|
#autopurge.snapRetainCount=3
|
||||||
|
# Purge task interval in hours
|
||||||
|
# Set to "0" to disable auto purge feature
|
||||||
|
#autopurge.purgeInterval=1
|
Loading…
x
Reference in New Issue
Block a user