From 4b9d2fe9b38fde24b0c54c0f7e96b129fc88f4ab Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 22 Aug 2013 14:28:01 +0200 Subject: [PATCH] Adopt 4.4 changes. --- conf/solrconfig-devl.xml | 830 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 587 insertions(+), 243 deletions(-) diff --git a/conf/solrconfig-devl.xml b/conf/solrconfig-devl.xml index e26b24a..a828f63 100644 --- a/conf/solrconfig-devl.xml +++ b/conf/solrconfig-devl.xml @@ -29,27 +29,15 @@ have your own custom plugins. --> - - ${solr.abortOnConfigurationError:true} - - LUCENE_43 + --> + 4.4 - - - - - - - - - - - - ${solr.data.dir:/home/dennis/proj/lui-solr/data} + ${solr.data.dir:lui-solr4/collection1/data} + - + class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/> + + + - + - WARNING: See also the section below for parameters - that overfor Solr's main Lucene index. + + + - - - false - - 10 - - 32 - + + + + + + + + + + + - 10000 - 1000 - 10000 - + + 10 + 10 + + --> + + + - + - native - - - - - - - - - false - 32 - 10 + ${solr.lock.type:native} + + + + + + - 1 + - 0 + + - false + true + - + + + ${solr.ulog.dir:} + + - + + ${solr.autoSoftCommit.maxTime:-1} + + + - + - 10 + 2 @@ -599,17 +680,21 @@ This section contains instructions for how the SolrDispatchFilter should behave when processing requests for this SolrCore. - handleSelect affects the behavior of requests such as /select?qt=XXX + handleSelect is a legacy option that affects the behavior of requests + such as /select?qt=XXX handleSelect="true" will cause the SolrDispatchFilter to process - the request and will result in consistent error handling and - formatting for all types of requests. + the request and dispatch the query to a handler specified by the + "qt" param, assuming "/select" isn't already registered. handleSelect="false" will cause the SolrDispatchFilter to - ignore "/select" requests and fallback to using the legacy - SolrServlet and it's Solr 1.1 style error formatting + ignore "/select" requests, resulting in a 404 unless a handler + is explicitly registered with the name "/select" + + handleSelect="true" is not recommended for new users, but is the default + for backwards compatibility --> - + + multipartUploadLimitInKB="2048000" + formdataUploadLimitInKB="2048" + addHttpRequestToContext="false"/> - - - explicit - text - - false - - true - - 5 - true - - - spellcheck - + + + + explicit + 10 + text + + + + + + + + + + + + + + explicit + json + true + text + + + + + + + + true + json + true + - - 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 + title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0 + + text + 100% *:* 10 *,score + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0 - text,features,name,sku,id,manu,cat + text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename 3 - - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 - - + on cat manu_exact + content_type + author_s ipod GB 1 cat,inStock + after price 0 600 50 - after + popularity + 0 + 10 + 3 manufacturedate_dt NOW/YEAR-10YEARS NOW @@ -784,34 +963,59 @@ before after - on - text features name + content features title name + html + <b> + </b> + 0 + title 0 name + 3 + 200 + content + 750 + + + on + false + 5 + 2 + 5 + true + true + 5 + 3 + + spellcheck - - - + - - - - - - + - - + + + + application/json + + + + + application/csv + + - text true ignored_ @@ -864,6 +1058,7 @@ + - - search + solrpingquery + + all + + @@ -970,27 +1172,37 @@ - + + + - + - text + text_general + + + - solr.IndexBasedSpellChecker - text - text - true - ./spellchecker - + internal + + 0.5 + + 2 + + 1 + + 5 + + 4 + + 0.01 + - + + + + wordbreak + solr.WordBreakSolrSpellChecker + name + true + true + 10 + @@ -1081,9 +1319,8 @@ freq lowerfilt - spellcheckerFreq + solr.DirectSolrSpellChecker freq - true --> @@ -1113,9 +1350,22 @@ --> - false - false - 1 + text + + default + wordbreak + on + true + 10 + 5 + 5 + true + true + 10 + 5 spellcheck @@ -1135,8 +1385,9 @@ In reality you will likely want to add the component to your already specified request handlers. --> - + + text true @@ -1148,14 +1399,13 @@ http://wiki.apache.org/solr/ClusteringComponent - This relies on third party jars which are notincluded in the - release. To use this component (and the "/clustering" handler) - Those jars will need to be downloaded, and you'll need to set - the solr.cluster.enabled system property when running solr... + You'll need to set the solr.clustering.enabled system property + when running solr to run with clustering enabled: + + java -Dsolr.clustering.enabled=true -jar start.jar - java -Dsolr.clustering.enabled=true -jar start.jar --> - @@ -1163,8 +1413,8 @@ default - 20 - + @@ -1242,7 +1492,7 @@ edismax - text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 *:* 10 @@ -1266,6 +1516,7 @@ true + false terms @@ -1291,6 +1542,7 @@ explicit + text elevator @@ -1344,13 +1596,17 @@ - + - + + + + ]]> + + + + 10 + .,!? + + + + + + + WORD + + + en + US + + @@ -1409,7 +1686,47 @@ --> + + + + + + + + + + text/plain; charset=UTF-8 + + - + + + + + + + *:* - - - -- 1.7.10.4