solr.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  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. -->
  16. <!--
  17. This is an example of a simple "solr.xml" file for configuring one or
  18. more Solr Cores, as well as allowing Cores to be added, removed, and
  19. reloaded via HTTP requests.
  20. More information about options available in this configuration file,
  21. and Solr Core administration can be found online:
  22. http://wiki.apache.org/solr/CoreAdmin
  23. -->
  24. <solr>
  25. <solrcloud>
  26. <str name="host">${host:}</str>
  27. <int name="hostPort">${jetty.port:8983}</int>
  28. <str name="hostContext">${hostContext:solr}</str>
  29. <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
  30. <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
  31. <int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
  32. <int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>
  33. <str name="zkCredentialsProvider">${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider}</str>
  34. <str name="zkACLProvider">${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider}</str>
  35. </solrcloud>
  36. <shardHandlerFactory name="shardHandlerFactory"
  37. class="HttpShardHandlerFactory">
  38. <int name="socketTimeout">${socketTimeout:600000}</int>
  39. <int name="connTimeout">${connTimeout:60000}</int>
  40. </shardHandlerFactory>
  41. </solr>