4
Licensed to the Apache Software Foundation (ASF) under one or more
5
contributor license agreements. See the NOTICE file distributed with
6
this work for additional information regarding copyright ownership.
7
The ASF licenses this file to You under the Apache License, Version 2.0
8
(the "License"); you may not use this file except in compliance with
9
the License. You may obtain a copy of the License at
11
http://www.apache.org/licenses/LICENSE-2.0
13
Unless required by applicable law or agreed to in writing, software
14
distributed under the License is distributed on an "AS IS" BASIS,
15
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
See the License for the specific language governing permissions and
17
limitations under the License.
20
<!-- $Id: solrconfig-querysender.xml 1048886 2010-12-14 01:10:52Z hossman $
26
<luceneMatchVersion>${tests.luceneMatchVersion:LUCENE_CURRENT}</luceneMatchVersion>
27
<!-- The DirectoryFactory to use for indexes.
28
solr.StandardDirectoryFactory, the default, is filesystem based.
29
solr.RAMDirectoryFactory is memory based and not persistent. -->
30
<directoryFactory name="Dir�ctoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"/>
32
<updateHandler class="solr.DirectUpdateHandler2">
33
<listener event="postCommit"
34
class="org.apache.solr.core.MockEventListener"/>
35
<listener event="postOptimize"
36
class="org.apache.solr.core.MockEventListener"/>
42
<!-- a newSearcher event is fired whenever a new searcher is being prepared
43
and there is a current searcher handling requests (aka registered). -->
44
<!-- QuerySenderListener takes an array of NamedList and executes a
45
local query request for each NamedList in sequence. -->
46
<listener event="newSearcher" class="solr.QuerySenderListener">
49
<lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> <str name="qt">mock</str></lst>
50
<lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> <str name="qt">mock</str></lst>
54
<listener event="newSearcher"
55
class="org.apache.solr.core.MockEventListener"/>
58
<!-- a firstSearcher event is fired whenever a new searcher is being
59
prepared but there is no current registered searcher to handle
60
requests or to gain prewarming data from. -->
61
<listener event="firstSearcher" class="solr.QuerySenderListener">
64
<lst> <str name="q">fast_warm</str> <str name="start">0</str> <str name="rows">10</str>
65
<str name="qt">mock</str>
70
<listener event="firstSearcher"
71
class="org.apache.solr.core.MockEventListener"/>
75
<requestHandler name="mock" class="org.apache.solr.core.MockQuerySenderListenerReqHandler" default="true">
76
<!-- default values for query parameters -->