Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/lui-solr
[lui-solr.git] / zookeeper / multicore / core0 / conf / solrconfig.xml
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
10      http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 -->
18
19 <!--
20  This is a stripped down config file used for a simple example...  
21  It is *not* a good example to work from. 
22 -->
23 <config>
24   <luceneMatchVersion>4.4</luceneMatchVersion>
25   <!--  The DirectoryFactory to use for indexes.
26         solr.StandardDirectoryFactory, the default, is filesystem based.
27         solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->
28   <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
29
30   <dataDir>${solr.core0.data.dir:}</dataDir>
31
32   <!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>:
33   
34        <schemaFactory class="ManagedIndexSchemaFactory">
35          <bool name="mutable">true</bool>
36          <str name="managedSchemaResourceName">managed-schema</str>
37        </schemaFactory>
38        
39        When ManagedIndexSchemaFactory is specified, Solr will load the schema from
40        he resource named in 'managedSchemaResourceName', rather than from schema.xml.
41        Note that the managed schema resource CANNOT be named schema.xml.  If the managed
42        schema does not exist, Solr will create it after reading schema.xml, then rename
43        'schema.xml' to 'schema.xml.bak'. 
44        
45        Do NOT hand edit the managed schema - external modifications will be ignored and
46        overwritten as a result of schema modification REST API calls.
47
48        When ManagedIndexSchemaFactory is specified with mutable = true, schema
49        modification REST API calls will be allowed; otherwise, error responses will be
50        sent back for these requests. 
51   -->
52   <schemaFactory class="ClassicIndexSchemaFactory"/>
53
54   <updateHandler class="solr.DirectUpdateHandler2">
55     <updateLog>
56       <str name="dir">${solr.core0.data.dir:}</str>
57     </updateLog>
58   </updateHandler>
59
60   <!-- realtime get handler, guaranteed to return the latest stored fields 
61     of any document, without the need to commit or open a new searcher. The current 
62     implementation relies on the updateLog feature being enabled. -->
63   <requestHandler name="/get" class="solr.RealTimeGetHandler">
64     <lst name="defaults">
65       <str name="omitHeader">true</str>
66     </lst>
67   </requestHandler>  
68   
69   <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" /> 
70
71   <requestDispatcher handleSelect="true" >
72     <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" formdataUploadLimitInKB="2048" />
73   </requestDispatcher>
74   
75   <requestHandler name="standard" class="solr.StandardRequestHandler" default="true" />
76   <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
77   <requestHandler name="/update" class="solr.UpdateRequestHandler"  />
78   <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
79      
80   <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
81     <lst name="invariants">
82       <str name="q">solrpingquery</str>
83     </lst>
84     <lst name="defaults">
85       <str name="echoParams">all</str>
86     </lst>
87   </requestHandler>
88    
89   <!-- config for the admin interface --> 
90   <admin>
91     <defaultQuery>solr</defaultQuery>
92   </admin>
93
94 </config>
95