| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <config> |
| <luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion> |
| |
| <!--<lib dir="../../contrib/velocity/lib" />--> |
| <!--<lib dir="../../dist/" regex="solr-velocity-\d.*\.jar" />--> |
| |
| <schemaFactory class="ClassicIndexSchemaFactory"/> |
| |
| <requestHandler name="search" class="solr.SearchHandler" default="true"> |
| <lst name="defaults"> |
| <str name="echoParams">explicit</str> |
| <int name="rows">10</int> |
| </lst> |
| </requestHandler> |
| |
| <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter"/> |
| |
| <queryResponseWriter name="velocityWithInitProps" class="solr.VelocityResponseWriter"> |
| <str name="init.properties.file">velocity-init.properties</str> |
| </queryResponseWriter> |
| |
| <queryResponseWriter name="velocityWithCustomTools" class="solr.VelocityResponseWriter"> |
| <lst name="tools"> |
| <!-- how someone would typically add a custom tool, with a custom, non-clashing name --> |
| <str name="mytool">org.apache.solr.velocity.MockTool</str> |
| |
| <!-- override the $log context object --> |
| <str name="log">org.apache.solr.velocity.MockTool</str> |
| |
| <!-- Try to override response, but ignored --> |
| <str name="response">org.apache.solr.velocity.MockTool</str> |
| </lst> |
| </queryResponseWriter> |
| </config> |