Apache Lucene open-source search software
SOLR-14267: complete <query><HashDocSet> solrconfig.xml removal
Christine Poerschkefc24fa95063c
diff --git a/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xml b/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xmlindex abf50f8af22..e8bc13a2fc8 100644--- a/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xml+++ b/solr/contrib/clustering/src/test-files/clustering/solr/collection1/conf/solrconfig.xml@@ -153,12 +153,6 @@queryResultCache. --><queryResultMaxDocsCached>200</queryResultMaxDocsCached>- <!-- This entry enables an int hash representation for filters (DocSets)- when the number of items in the set is less than maxSize. For smaller- sets, this representation is more memory efficient, more efficient to- iterate over, and faster to take intersections. -->- <HashDocSet maxSize="3000" loadFactor="0.75"/>-<!-- a newSearcher event is fired whenever a new searcher is being preparedand there is a current searcher handling requests (aka registered). --><!-- QuerySenderListener takes an array of NamedList and executes adiff --git a/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/collection1/conf/dataimport-solrconfig.xml b/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/collection1/conf/dataimport-solrconfig.xmlindex 95429606eca..f9f53045840 100644--- a/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/collection1/conf/dataimport-solrconfig.xml+++ b/solr/contrib/dataimporthandler-extras/src/test-files/dihextras/solr/collection1/conf/dataimport-solrconfig.xml@@ -134,12 +134,6 @@queryResultCache. --><queryResultMaxDocsCached>200</queryResultMaxDocsCached>- <!-- This entry enables an int hash representation for filters (DocSets)- when the number of items in the set is less than maxSize. For smaller- sets, this representation is more memory efficient, more efficient to- iterate over, and faster to take intersections. -->- <HashDocSet maxSize="3000" loadFactor="0.75"/>-<!-- a newSearcher event is fired whenever a new searcher is being preparedand there is a current searcher handling requests (aka registered). --><!-- QuerySenderListener takes an array of NamedList and executes adiff --git a/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/contentstream-solrconfig.xml b/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/contentstream-solrconfig.xmlindex 2d90e0a0f46..d3ee34c0bc8 100644--- a/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/contentstream-solrconfig.xml+++ b/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/contentstream-solrconfig.xml@@ -134,12 +134,6 @@queryResultCache. --><queryResultMaxDocsCached>200</queryResultMaxDocsCached>- <!-- This entry enables an int hash representation for filters (DocSets)- when the number of items in the set is less than maxSize. For smaller- sets, this representation is more memory efficient, more efficient to- iterate over, and faster to take intersections. -->- <HashDocSet maxSize="3000" loadFactor="0.75"/>-<!-- a newSearcher event is fired whenever a new searcher is being preparedand there is a current searcher handling requests (aka registered). --><!-- QuerySenderListener takes an array of NamedList and executes adiff --git a/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-nodatasource-solrconfig.xml b/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-nodatasource-solrconfig.xmlindex ef9c257286d..2fd15b95098 100644--- a/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-nodatasource-solrconfig.xml+++ b/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-nodatasource-solrconfig.xml@@ -136,12 +136,6 @@queryResultCache. --><queryResultMaxDocsCached>200</queryResultMaxDocsCached>- <!-- This entry enables an int hash representation for filters (DocSets)- when the number of items in the set is less than maxSize. For smaller- sets, this representation is more memory efficient, more efficient to- iterate over, and faster to take intersections. -->- <HashDocSet maxSize="3000" loadFactor="0.75"/>-<!-- a newSearcher event is fired whenever a new searcher is being preparedand there is a current searcher handling requests (aka registered). --><!-- QuerySenderListener takes an array of NamedList and executes adiff --git a/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-solrconfig.xml b/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-solrconfig.xmlindex 3deadfb777c..ec6e6a9e839 100644--- a/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-solrconfig.xml+++ b/solr/contrib/dataimporthandler/src/test-files/dih/solr/collection1/conf/dataimport-solrconfig.xml@@ -134,12 +134,6 @@queryResultCache. --><queryResultMaxDocsCached>200</queryResultMaxDocsCached>- <!-- This entry enables an int hash representation for filters (DocSets)- when the number of items in the set is less than maxSize. For smaller- sets, this representation is more memory efficient, more efficient to- iterate over, and faster to take intersections. -->- <HashDocSet maxSize="3000" loadFactor="0.75"/>-<!-- a newSearcher event is fired whenever a new searcher is being preparedand there is a current searcher handling requests (aka registered). --><!-- QuerySenderListener takes an array of NamedList and executes adiff --git a/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xml b/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xmlindex 8a759723574..ba9ea59efab 100644--- a/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xml+++ b/solr/contrib/extraction/src/test-files/extraction/solr/collection1/conf/solrconfig.xml@@ -111,9 +111,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsdiff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.javaindex 3acb9c6f964..653be098b82 100644--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java@@ -215,7 +215,7 @@ public class SolrConfig extends XmlConfigFile implements MapSerializable {if (get("query/boolTofilterOptimizer", null) != null)log.warn("solrconfig.xml: <boolTofilterOptimizer> is currently not implemented and has no effect.");if (get("query/HashDocSet", null) != null)- log.warn("solrconfig.xml: <HashDocSet> is deprecated and no longer recommended used.");+ log.warn("solrconfig.xml: <HashDocSet> is deprecated and no longer used.");// TODO: Old code - in case somebody wants to re-enable. Also see SolrIndexSearcher#search()// filtOptEnabled = getBool("query/boolTofilterOptimizer/@enabled", false);@@ -249,9 +249,6 @@ public class SolrConfig extends XmlConfigFile implements MapSerializable {org.apache.solr.search.SolrIndexSearcher.initRegenerators(this);- hashSetInverseLoadFactor = 1.0f / getFloat("//HashDocSet/@loadFactor", 0.75f);- hashDocSetMaxSize = getInt("//HashDocSet/@maxSize", 3000);-if (get("jmx", null) != null) {log.warn("solrconfig.xml: <jmx> is no longer supported, use solr.xml:/metrics/reporter section instead");}@@ -529,9 +526,6 @@ public class SolrConfig extends XmlConfigFile implements MapSerializable {public final boolean useRangeVersionsForPeerSync;- // DocSet- public final float hashSetInverseLoadFactor;- public final int hashDocSetMaxSize;// IndexConfig settingspublic final SolrIndexConfig indexConfig;diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xmlindex 6aa7bea3ab0..1ea6a0abeb2 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-analytics-query.xml@@ -124,9 +124,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsthe threshold (represented as a fraction of the total index)diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-cache-enable-disable.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-cache-enable-disable.xmlindex 6997eaff987..c01fb61fa7e 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-cache-enable-disable.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-cache-enable-disable.xml@@ -60,9 +60,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsthe threshold (represented as a fraction of the total index)diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xmlindex eda755d85e3..6d077fb43bd 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-collapseqparser.xml@@ -124,9 +124,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsthe threshold (represented as a fraction of the total index)diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xmlindex 4123314c849..75d36c9b580 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-elevate.xml@@ -76,9 +76,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsthe threshold (represented as a fraction of the total index)diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-minhash.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-minhash.xmlindex 207ae62f9eb..9b973db4df2 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-minhash.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-minhash.xml@@ -136,9 +136,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsthe threshold (represented as a fraction of the total index)diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xmlindex 9ffcd8ffb1c..fd86f9646ea 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig-plugcollector.xml@@ -123,9 +123,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsthe threshold (represented as a fraction of the total index)diff --git a/solr/core/src/test-files/solr/collection1/conf/solrconfig.xml b/solr/core/src/test-files/solr/collection1/conf/solrconfig.xmlindex ac2d5c9a205..f57b1490ca0 100644--- a/solr/core/src/test-files/solr/collection1/conf/solrconfig.xml+++ b/solr/core/src/test-files/solr/collection1/conf/solrconfig.xml@@ -135,9 +135,6 @@<queryResultWindowSize>10</queryResultWindowSize>- <!-- set maxSize artificially low to exercise both types of sets -->- <HashDocSet maxSize="3" loadFactor="0.75"/>-<!-- boolToFilterOptimizer converts boolean clauses with zero boostinto cached filters if the number of docs selected by the clause exceedsthe threshold (represented as a fraction of the total index)diff --git a/solr/core/src/test-files/solr/crazy-path-to-config.xml b/solr/core/src/test-files/solr/crazy-path-to-config.xmlindex d239c9db607..1c6f64fd7e4 100644--- a/solr/core/src/test-files/solr/crazy-path-to-config.xml+++ b/solr/core/src/test-files/solr/crazy-path-to-config.xml@@ -34,7 +34,6 @@<maxBooleanClauses>${solr.max.booleanClauses:1024}</maxBooleanClauses><useFilterForSortedQuery>true</useFilterForSortedQuery><queryResultWindowSize>10</queryResultWindowSize>- <HashDocSet maxSize="3000" loadFactor="0.75"/><boolTofilterOptimizer enabled="true" cacheSize="32" threshold=".05"/></query>