From 73be94ce28084930b4bde3dcde1ed9df5a1de3a0 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Thu, 9 Nov 2017 17:00:53 -0600 Subject: [PATCH] Remove comments from schema.xml/solrconfig.xml --- docker/cores/core0/conf/schema.xml | 981 ++++----------- docker/cores/core0/conf/solrconfig.xml | 1524 +----------------------- 2 files changed, 294 insertions(+), 2211 deletions(-) diff --git a/docker/cores/core0/conf/schema.xml b/docker/cores/core0/conf/schema.xml index 58a714cb..923ea7c4 100644 --- a/docker/cores/core0/conf/schema.xml +++ b/docker/cores/core0/conf/schema.xml @@ -22,741 +22,260 @@ (i.e. ./solr/conf/schema.xml by default) or located where the classloader for the Solr webapp can find it. - This example schema is the recommended starting point for users. - It should be kept correct and concise, usable out-of-the-box. + NOTE: This schema file has been stripped down and customized for use in + testing the pysolr library. All comments and unnecessary definitions have been + removed. For more information, on how to customize this file, please see http://wiki.apache.org/solr/SchemaXml - - PERFORMANCE NOTE: this schema includes many optional features and should not - be used for benchmarking. To improve performance one could - - set stored="false" for all fields possible (esp large fields) when you - only need to search on the field but don't need to return the original - value. - - set indexed="false" if you don't need to search on the field, but only - return the field as a result of searching on other indexed fields. - - remove all unneeded copyField statements - - for best index size and searching performance, set "index" to false - for all general text fields, use copyField to copy them to the - catchall "text" field, and use that for searching. - - For maximum indexing performance, use the ConcurrentUpdateSolrServer - java client. - - Remember to run the JVM in server mode, and use a higher logging level - that avoids logging every request --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - id - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docker/cores/core0/conf/solrconfig.xml b/docker/cores/core0/conf/solrconfig.xml index 36f931de..da0bbccf 100644 --- a/docker/cores/core0/conf/solrconfig.xml +++ b/docker/cores/core0/conf/solrconfig.xml @@ -18,59 +18,14 @@ 4.10.4 - @@ -83,584 +38,59 @@ - - - - ${solr.data.dir:} - - - - - ${solr.hdfs.home:} - ${solr.hdfs.confdir:} - ${solr.hdfs.blockcache.enabled:true} - ${solr.hdfs.blockcache.global:true} - - - - - - - - - - - - - - - - - - - - - - - - - - - ${solr.lock.type:native} - - - - - - - - - - - - - - - - - - - - - - true - - - + true - - - - - - - - - - + ${solr.ulog.dir:} - - - ${solr.autoCommit.maxTime:15000} - false - - - - - - ${solr.autoSoftCommit.maxTime:-1} - - - - - - + + ${solr.autoCommit.maxTime:15000} + false + + + ${solr.autoSoftCommit.maxTime:-1} + - - - - - - - 1024 + + + + - - - - - - - - - - - - - - - - - - - - - - true - - - - - 20 - - - 200 - - - + 20 + 200 + - - - + @@ -670,231 +100,26 @@ - false - 2 - - - - - - - - - - - - - - explicit 10 text - - - - - - - - - - + + explicit @@ -904,18 +129,6 @@ - - true @@ -924,11 +137,6 @@ - - {!xport} @@ -941,35 +149,17 @@ - - - - - - - - explicit - velocity browse layout Solritas - edismax text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 @@ -988,7 +178,6 @@ text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename 3 - on true cat @@ -1015,7 +204,6 @@ before after - on content features title name true @@ -1031,7 +219,6 @@ content 750 - on false 5 @@ -1043,168 +230,27 @@ 3 - spellcheck + - - - - - - - - - - + true ignored_ - - true links ignored_ + - - - - - - - - - - - - - - - solrpingquery @@ -1212,15 +258,8 @@ all - - - explicit @@ -1228,124 +267,24 @@ - - - - - - - - - - - text_general - - - default text solr.DirectSolrSpellChecker - internal - 0.5 - 2 - 1 - 5 - 4 - 0.01 - - wordbreak solr.WordBreakSolrSpellChecker @@ -1354,66 +293,11 @@ true 10 - - - - - - - - - - text - default wordbreak on @@ -1431,42 +315,8 @@ - - - - text @@ -1477,92 +327,32 @@ - - + lingo - - org.carrot2.clustering.lingo.LingoClusteringAlgorithm - - clustering/carrot2 - - stc org.carrot2.clustering.stc.STCClusteringAlgorithm - - kmeans org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm - - + true true - name - id - features - true - - - false - - edismax text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 @@ -1576,16 +366,8 @@ - - true @@ -1596,22 +378,11 @@ - - - string elevate.xml - explicit @@ -1622,76 +393,37 @@ - - - - + 100 - - + - 70 - 0.5 - [-\w ,/\n\"']{20,200} - - + ]]> ]]> - - - - - + - - + + + - - - - - - - - - + @@ -1705,8 +437,7 @@ - 10 @@ -1717,10 +448,7 @@ - WORD - - en US @@ -1728,180 +456,16 @@ - - - - - - - - - - - - - - - text/plain; charset=UTF-8 - - - + - 5 - - - - - - - - - - - - - - *:*