From 62cedc1b3c081a742c0645323e64debc233efa7d Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Fri, 24 Dec 2010 19:07:57 +0000 Subject: [PATCH] tests: remove dependency on DisMaxRequestHandler, minimize solrconfig git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052553 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/solr/core/TestXIncludeConfig.java | 2 +- .../solr/conf/solrconfig-reqHandler.incl | 25 +- .../solr/conf/solrconfig-xinclude.xml | 404 ------------------ 3 files changed, 5 insertions(+), 426 deletions(-) diff --git a/solr/src/test/org/apache/solr/core/TestXIncludeConfig.java b/solr/src/test/org/apache/solr/core/TestXIncludeConfig.java index e9ed211ff7a..8a3d85af2be 100644 --- a/solr/src/test/org/apache/solr/core/TestXIncludeConfig.java +++ b/solr/src/test/org/apache/solr/core/TestXIncludeConfig.java @@ -42,7 +42,7 @@ public class TestXIncludeConfig extends AbstractSolrTestCase { // TODO: figure out a better way to handle this. if (supports == true){ SolrCore core = h.getCore(); - SolrRequestHandler solrRequestHandler = core.getRequestHandler("dismaxOldStyleDefaults"); + SolrRequestHandler solrRequestHandler = core.getRequestHandler("includedHandler"); assertNotNull("Solr Req Handler is null", solrRequestHandler); } else { log.info("Didn't run testXInclude, because this XML DocumentBuilderFactory doesn't support it"); diff --git a/solr/src/test/test-files/solr/conf/solrconfig-reqHandler.incl b/solr/src/test/test-files/solr/conf/solrconfig-reqHandler.incl index a0bff91f281..03f236fccf7 100644 --- a/solr/src/test/test-files/solr/conf/solrconfig-reqHandler.incl +++ b/solr/src/test/test-files/solr/conf/solrconfig-reqHandler.incl @@ -1,22 +1,5 @@ - - - 0.01 - - text^0.5 features_t^1.0 subject^1.4 title_stemmed^2.0 - - - text^0.2 features_t^1.1 subject^1.4 title_stemmed^2.0 title^1.5 - - - ord(weight)^0.5 recip(rord(iind),1,1000,1000)^0.3 - - - 3<-1 5<-2 6<90% - - 100 - \ No newline at end of file + + + diff --git a/solr/src/test/test-files/solr/conf/solrconfig-xinclude.xml b/solr/src/test/test-files/solr/conf/solrconfig-xinclude.xml index d99463704d0..63cd3d5cd37 100644 --- a/solr/src/test/test-files/solr/conf/solrconfig-xinclude.xml +++ b/solr/src/test/test-files/solr/conf/solrconfig-xinclude.xml @@ -17,411 +17,7 @@ limitations under the License. --> - - ${tests.luceneMatchVersion:LUCENE_CURRENT} - - - - ${solr.data.dir:./solr/data} - - - - - - - - - false - 10 - - - - 32 - 2147483647 - 10000 - 1000 - 10000 - - - - - - - - 1000 - 10000 - - 256 - - single - - - - - false - 10 - - 10 - - 256 - - 2147483647 - 10000 - - - true - - - - - - - - - - - - - - - 12 - - - - - 1024 - - - - - - - - - - - true - - - - - - - 10 - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - *:* - 0.01 - - text^0.5 features_t^1.0 subject^1.4 title_stemmed^2.0 - - - text^0.2 features_t^1.1 subject^1.4 title_stemmed^2.0 title^1.5 - - - ord(weight)^0.5 recip(rord(iind),1,1000,1000)^0.3 - - - 3<-1 5<-2 6<90% - - 100 - - - - 1000 - 1.4142135 - 12 - foo - - - sqrt 2 - log 10 - - - - - - - - 4 - true - text,name,subject,title,whitetok - - - - - - - 4 - true - text,name,subject,title,whitetok - - - - - - false - - - - lowerfilt - - - default - lowerfilt - spellchecker1 - true - - - - jarowinkler - lowerfilt - - org.apache.lucene.search.spell.JaroWinklerDistance - spellchecker2 - - - - solr.FileBasedSpellChecker - external - spellings.txt - UTF-8 - spellchecker3 - - - - - - - - termsComp - - - - - - - - - false - - false - - 1 - - - spellcheck - - - - - - - - - - - - tvComponent - - - - - - - - - 100 - - - - - - 70 - - - - - - - ]]> - ]]> - - - - - - - - - - - max-age=30, public - - - - - solr - solrconfig.xml scheam.xml admin-extra.html - - - - prefix-${solr.test.sys.prop2}-suffix - - - - - - false - true - v_t,t_field - org.apache.solr.update.processor.TextProfileSignature - - - -