solr.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. IBM Confidential
  4. OCO Source Materials
  5. IBM Business Platform: Search
  6. (C) Copyright IBM Corp. 2017, 2022
  7. The source code for this program is not published or otherwise divested of its trade secrets,
  8. irrespective of what has been deposited with the U.S. Copyright Office.
  9. -->
  10. <!--
  11. This is an example of a simple "solr.xml" file for configuring one or
  12. more Solr Cores, as well as allowing Cores to be added, removed, and
  13. reloaded via HTTP requests.
  14. More information about options available in this configuration file,
  15. and Solr Core administration can be found online:
  16. http://wiki.apache.org/solr/CoreAdmin
  17. -->
  18. <solr>
  19. <!--
  20. maxBooleanClauses
  21. Sets the maximum number of clauses allowed in any boolean query.
  22. This global parameter is now defined in the solr.xml (since Solr 8.1).
  23. See upgrade notes: https://lucene.apache.org/solr/guide/8_2/solr-upgrade-notes.html
  24. and https://lucene.apache.org/solr/guide/8_2/format-of-solr-xml.html#global-maxbooleanclauses
  25. -->
  26. <int name="maxBooleanClauses">${solr.max.booleanClauses:60000}</int>
  27. <solrcloud>
  28. <str name="host">${host:}</str>
  29. <int name="hostPort">${jetty.port:8983}</int>
  30. <str name="hostContext">${hostContext:solr}</str>
  31. <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
  32. <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
  33. <int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
  34. <int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>
  35. <str name="zkCredentialsProvider">${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider}</str>
  36. <str name="zkACLProvider">${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider}</str>
  37. </solrcloud>
  38. <shardHandlerFactory name="shardHandlerFactory"
  39. class="HttpShardHandlerFactory">
  40. <int name="socketTimeout">${socketTimeout:600000}</int>
  41. <int name="connTimeout">${connTimeout:60000}</int>
  42. </shardHandlerFactory>
  43. </solr>