All Downloads are FREE. Search and download functionalities are using the official Maven repository.

home.geonames.solr.conf.solrconfig.xml Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
<?xml version="1.0" encoding="UTF-8" ?>
<config>
  <abortOnConfigurationError>true</abortOnConfigurationError>
  <dataDir>${geonames.solr.home:./solr}/data</dataDir>

  <indexDefaults>
    <useCompoundFile>false</useCompoundFile>
    <mergeFactor>25</mergeFactor>
    <ramBufferSizeMB>128</ramBufferSizeMB>
    <maxFieldLength>10000</maxFieldLength>
    <writeLockTimeout>1000</writeLockTimeout>
    <commitLockTimeout>10000</commitLockTimeout>
    <lockType>native</lockType>
  </indexDefaults>

  <mainIndex>
    <useCompoundFile>false</useCompoundFile>
    <ramBufferSizeMB>128</ramBufferSizeMB>
    <mergeFactor>25</mergeFactor>
    <unlockOnStartup>false</unlockOnStartup>
    <reopenReaders>false</reopenReaders>
    <deletionPolicy class="solr.SolrDeletionPolicy">
      <str name="maxCommitsToKeep">1</str>
      <str name="maxOptimizedCommitsToKeep">0</str>
    </deletionPolicy>
    <infoStream file="INFOSTREAM.txt">false</infoStream>
  </mainIndex>

  <query>
    <maxBooleanClauses>1024</maxBooleanClauses>

    <filterCache class="solr.LRUCache" size="512" initialSize="512" autowarmCount="128"/>
    <queryResultCache class="solr.LRUCache" size="512" initialSize="512" autowarmCount="32"/>
    <documentCache class="solr.LRUCache" size="512" initialSize="512" autowarmCount="0"/>

    <enableLazyFieldLoading>true</enableLazyFieldLoading>
    <queryResultWindowSize>50</queryResultWindowSize>
    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
    <HashDocSet maxSize="3000" loadFactor="0.75"/>
    <listener event="newSearcher" class="solr.QuerySenderListener">
      <arr name="queries">
        <lst><str name="q">newcastle</str> <str name="start">0</str><str name="rows">10</str></lst>
      </arr>
    </listener>

    <listener event="firstSearcher" class="solr.QuerySenderListener">
      <arr name="queries">
        <lst><str name="q">newcastle</str><str name="start">0</str><str name="rows">10</str></lst>
      </arr>
    </listener>

    <useColdSearcher>false</useColdSearcher>
    <maxWarmingSearchers>2</maxWarmingSearchers>
  </query>

  <requestDispatcher handleSelect="true" >
    <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
    <httpCaching lastModifiedFrom="openTime" etagSeed="Solr"></httpCaching>
  </requestDispatcher>

  <requestHandler name="standard" class="solr.SearchHandler" default="true">
     <lst name="defaults">
       <str name="echoParams">explicit</str>
       <int name="rows">20</int>
       <str name="fl">basic_name,country_code</str>
     </lst>
  </requestHandler>

  <updateHandler class="solr.DirectUpdateHandler2"></updateHandler>
  <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />

</config>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy