cpoerschke commented on code in PR #2382: URL: https://github.com/apache/solr/pull/2382#discussion_r1596642442
########## solr/modules/monitor/src/test-files/solr/collection1/solrconfig.xml: ########## @@ -0,0 +1,173 @@ +<?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> + + <dataDir>${solr.data.dir:}</dataDir> + + <directoryFactory name="DirectoryFactory" + class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/> + + <codecFactory class="solr.SchemaCodecFactory"/> + + <indexConfig> + <lockType>${solr.lock.type:native}</lockType> + </indexConfig> + <jmx/> + <updateHandler class="solr.DirectUpdateHandler2"> + <updateLog> + <str name="dir">${solr.ulog.dir:}</str> + <int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int> + </updateLog> + <autoCommit> + <maxTime>${solr.autoCommit.maxTime:15000}</maxTime> + <openSearcher>false</openSearcher> + </autoCommit> + <autoSoftCommit> + <maxTime>${solr.autoSoftCommit.maxTime:1000}</maxTime> + </autoSoftCommit> + </updateHandler> + <query> + <maxBooleanClauses>1024</maxBooleanClauses> + <filterCache class="solr.CaffeineCache" + size="512" + initialSize="512" + autowarmCount="0"/> + <queryResultCache class="solr.CaffeineCache" + size="512" + initialSize="512" + autowarmCount="0"/> + <documentCache class="solr.CaffeineCache" + size="512" + initialSize="512" + autowarmCount="0"/> + <cache name="perSegFilter" + class="solr.search.CaffeineCache" + size="10" + initialSize="0" + autowarmCount="10" + regenerator="solr.NoOpRegenerator"/> + <cache name="solrMonitorCache" + class="org.apache.solr.monitor.cache.SharedMonitorCache" + async="false" + regenerator="org.apache.solr.monitor.cache.SharedMonitorCacheLatestRegenerator" + maxSize="2" + maxIdleTime="100000"/> + <enableLazyFieldLoading>true</enableLazyFieldLoading> + <queryResultWindowSize>20</queryResultWindowSize> + <queryResultMaxDocsCached>200</queryResultMaxDocsCached> + <listener event="newSearcher" class="solr.QuerySenderListener"> + <arr name="queries"> + </arr> + </listener> + <listener event="firstSearcher" class="solr.QuerySenderListener"> + <arr name="queries"> + </arr> + </listener> + <useColdSearcher>false</useColdSearcher> + </query> + <requestDispatcher> + <httpCaching never304="true"/> + </requestDispatcher> + <requestHandler name="/select" class="org.apache.solr.monitor.search.ReverseSearchHandler"/> + <requestHandler name="/query" class="org.apache.solr.monitor.search.ReverseSearchHandler"/> + <requestHandler name="/browse" class="solr.SearchHandler" + useParams="query,facets,velocity,browse"> + <lst name="defaults"> + <str name="echoParams">explicit</str> + </lst> + </requestHandler> + <requestHandler name="/pingQuery" class="solr.SearchHandler"> + <lst name="invariants"> + <str name="q">0</str> + <str name="log.debug">false</str> + <str name="wt">xml</str> + <str name="df">_version_</str> + </lst> + </requestHandler> + <requestHandler name="/admin/ping" class="solr.PingRequestHandler"> + <lst name="invariants"> + <str name="q">0</str> + <str name="qt">/pingQuery</str> + </lst> + <lst name="defaults"> + <str name="echoParams">all</str> + </lst> + </requestHandler> + + <searchComponent name="reverseSearch" + class="org.apache.solr.monitor.search.ReverseSearchComponent"> + <str name="presearcherType">TermFilteredPresearcher</str> + </searchComponent> + <searchComponent name="spellcheck" class="solr.SpellCheckComponent"> + <str name="queryAnalyzerFieldType">text_general</str> + </searchComponent> + <searchComponent name="tvComponent" + class="org.apache.solr.handler.component.TermVectorComponent"/> + <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy"> + <lst name="defaults"> + <bool name="tv">true</bool> + </lst> + <arr name="last-components"> + <str>tvComponent</str> + </arr> + </requestHandler> + <searchComponent name="terms" class="solr.TermsComponent"/> + <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy"> + <lst name="defaults"> + <bool name="terms">true</bool> + <bool name="distrib">false</bool> + </lst> + <arr name="last-components"> + <str>terms</str> + <str>tvComponent</str> + </arr> + </requestHandler> + <searchComponent name="elevator" class="solr.QueryElevationComponent"> + <str name="queryFieldType">string</str> + </searchComponent> + + <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy"> + <lst name="defaults"> + <str name="echoParams">explicit</str> + </lst> + <arr name="last-components"> + <str>elevator</str> + </arr> + </requestHandler> + <schemaFactory class="ClassicIndexSchemaFactory"/> + <updateRequestProcessorChain> + <processor class="solr.LogUpdateProcessorFactory"/> + <processor class="solr.DistributedUpdateProcessorFactory"/> + <processor class="org.apache.solr.monitor.update.MonitorUpdateProcessorFactory"/> + <processor class="solr.RunUpdateProcessorFactory"/> + </updateRequestProcessorChain> + <queryResponseWriter name="json" class="solr.JSONResponseWriter"> + <str name="content-type">text/plain; charset=UTF-8</str> + </queryResponseWriter> + <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy"> Review Comment: minor: `VelocityResponseWriter` got removed (or relocated) in https://issues.apache.org/jira/browse/SOLR-14792 subjective: suggest to prune `solrconfig.xml` content to remove anything that's not needed in the context of the monitor module -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org