From 741882bcb162dec284ee1963173a16e9627e93b5 Mon Sep 17 00:00:00 2001 From: Koji Sekiguchi Date: Sun, 23 Jan 2011 03:39:07 +0000 Subject: [PATCH] SOLR-2330, SOLR-1992: due to solrconfig.xml files in example-DIH are broken, DIH sample cannot be launched. add luceneMatchVersion, remove abortOnConfigurationError, DisMaxRequestHandler etc. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1062314 13f79535-47bb-0310-9956-ffa450edef68 --- solr/contrib/dataimporthandler/CHANGES.txt | 2 + .../example-DIH/solr/db/conf/solrconfig.xml | 133 +---------------- .../example-DIH/solr/mail/conf/solrconfig.xml | 24 ++- .../example-DIH/solr/rss/conf/solrconfig.xml | 137 ++---------------- .../example-DIH/solr/tika/conf/solrconfig.xml | 16 +- 5 files changed, 37 insertions(+), 275 deletions(-) diff --git a/solr/contrib/dataimporthandler/CHANGES.txt b/solr/contrib/dataimporthandler/CHANGES.txt index 0391b5816a8..3fbb1c23493 100644 --- a/solr/contrib/dataimporthandler/CHANGES.txt +++ b/solr/contrib/dataimporthandler/CHANGES.txt @@ -78,6 +78,8 @@ Bug Fixes * SOLR-2252: When a child entity in nested entities is rootEntity="true", delta-import doesn't work. (koji) +* SOLR-2330: solrconfig.xml files in example-DIH are broken. (Matt Parker, koji) + Other Changes ---------------------- diff --git a/solr/example/example-DIH/solr/db/conf/solrconfig.xml b/solr/example/example-DIH/solr/db/conf/solrconfig.xml index e060e5788dc..e46d8fe299d 100644 --- a/solr/example/example-DIH/solr/db/conf/solrconfig.xml +++ b/solr/example/example-DIH/solr/db/conf/solrconfig.xml @@ -17,18 +17,17 @@ --> + + + LUCENE_40 - - ${solr.abortOnConfigurationError:true} - false @@ -350,112 +349,6 @@ - - - - - explicit - 0.01 - - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 - - - text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9 - - - ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3 - - - id,name,price,score - - - 2<-1 5<-2 6<90% - - 100 - *:* - - text features name - - 0 - - name - regex - - - - - - - explicit - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 - 2<-1 5<-2 6<90% - - incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2 - - - - inStock:true - - - - cat - manu_exact - price:[* TO 500] - price:[500 TO *] - - - - - - - inStock:true - - - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 - - - 2<-1 5<-2 6<90% - - - - - - - - - diff --git a/solr/example/example-DIH/solr/mail/conf/solrconfig.xml b/solr/example/example-DIH/solr/mail/conf/solrconfig.xml index c0cbc66cf9d..19a4ebac562 100644 --- a/solr/example/example-DIH/solr/mail/conf/solrconfig.xml +++ b/solr/example/example-DIH/solr/mail/conf/solrconfig.xml @@ -17,14 +17,14 @@ --> - - ${solr.abortOnConfigurationError:true} + + + LUCENE_40 @@ -655,12 +655,6 @@ - - - @@ -721,7 +715,7 @@ 0.5 - [-\w ,/\n\"']{20,200} + [-\w ,/\n\"']{20,200} diff --git a/solr/example/example-DIH/solr/rss/conf/solrconfig.xml b/solr/example/example-DIH/solr/rss/conf/solrconfig.xml index 897f3287a10..054e6f3bb2b 100644 --- a/solr/example/example-DIH/solr/rss/conf/solrconfig.xml +++ b/solr/example/example-DIH/solr/rss/conf/solrconfig.xml @@ -17,18 +17,17 @@ --> + + + LUCENE_40 - - ${solr.abortOnConfigurationError:true} - false @@ -350,112 +349,6 @@ - - - - - explicit - 0.01 - - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 - - - text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9 - - - ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3 - - - id,name,price,score - - - 2<-1 5<-2 6<90% - - 100 - *:* - - text features name - - 0 - - name - regex - - - - - - - explicit - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 - 2<-1 5<-2 6<90% - - incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2 - - - - inStock:true - - - - cat - manu_exact - price:[* TO 500] - price:[500 TO *] - - - - - - - inStock:true - - - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 - - - 2<-1 5<-2 6<90% - - - - - - - - - @@ -643,7 +526,7 @@ 0.5 - [-\w ,/\n\"']{20,200} + [-\w ,/\n\"']{20,200} diff --git a/solr/example/example-DIH/solr/tika/conf/solrconfig.xml b/solr/example/example-DIH/solr/tika/conf/solrconfig.xml index c33d513efd4..c4dae4cb5cb 100644 --- a/solr/example/example-DIH/solr/tika/conf/solrconfig.xml +++ b/solr/example/example-DIH/solr/tika/conf/solrconfig.xml @@ -17,14 +17,14 @@ --> - - ${solr.abortOnConfigurationError:true} + + + LUCENE_40