From: Dennis Schafroth Date: Wed, 3 Jul 2013 11:47:49 +0000 (+0200) Subject: Fix: use first/new Searcher that loads used facets X-Git-Tag: v0.4.6~3^2~1 X-Git-Url: http://git.indexdata.com/?p=lui-solr.git;a=commitdiff_plain;h=5d667f595541656b5d94428de75cfe276ae4821d Fix: use first/new Searcher that loads used facets --- diff --git a/conf/solrconfig-devl.xml b/conf/solrconfig-devl.xml index 22fa0bd..e26b24a 100644 --- a/conf/solrconfig-devl.xml +++ b/conf/solrconfig-devl.xml @@ -543,20 +543,34 @@ --> - + + database:* + true + 1 + author_exact + subject_exact + medium_exact + date + database + - static firstSearcher warming in solrconfig.xml + database:* + true + 1 + author_exact + subject_exact + medium_exact + date + database + - - ${solr.abortOnConfigurationError:true} - + --> LUCENE_43 - - - - - - - + + + + + + + + + + + - - - - ${solr.data.dir:/var/lib/masterkey/lui/solr4/master} + - + 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 + + - + + + ${solr.ulog.dir:} + + - + + - + - + + database:* + true + 1 + author_exact + subject_exact + medium_exact + date + database + - static firstSearcher warming in solrconfig.xml + database:* + true + 1 + author_exact + subject_exact + medium_exact + date + database @@ -585,17 +681,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"/> - - - 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 @@ -770,34 +956,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_ @@ -850,6 +1051,7 @@ + - - search + solrpingquery + + all + + @@ -956,30 +1165,37 @@ - + It is also necessary for SolrCloud to function (in Cloud mode, the + replication handler is used to bulk transfer segments when nodes + are added or need to recover). + https://wiki.apache.org/solr/SolrCloud/ + --> + + + - - - + --> + - + - 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 + @@ -1070,9 +1312,8 @@ freq lowerfilt - spellcheckerFreq + solr.DirectSolrSpellChecker freq - true --> @@ -1102,9 +1343,22 @@ --> - false - false - 1 + text + + default + wordbreak + on + true + 10 + 5 + 5 + true + true + 10 + 5 spellcheck @@ -1124,8 +1378,9 @@ In reality you will likely want to add the component to your already specified request handlers. --> - + + text true @@ -1137,14 +1392,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 --> - @@ -1152,8 +1406,8 @@ default - 20 - + @@ -1231,7 +1485,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 @@ -1255,6 +1509,7 @@ true + false terms @@ -1280,6 +1535,7 @@ explicit + text elevator @@ -1333,13 +1589,17 @@ - + - + + + + ]]> + + + + 10 + .,!? + + + + + + + WORD + + + en + US + + @@ -1398,7 +1679,47 @@ --> + + + + + + + + + + + text/plain; charset=UTF-8 + + - + + + + + + + *:* - - - diff --git a/conf/solrconfig-slave.xml b/conf/solrconfig-slave.xml index 8c766df..371ba5f 100644 --- a/conf/solrconfig-slave.xml +++ b/conf/solrconfig-slave.xml @@ -543,16 +543,29 @@ --> - + + database:* + true + 1 + author_exact + subject_exact + medium_exact + date + database + - static firstSearcher warming in solrconfig.xml + database:* + true + 1 + author_exact + subject_exact + medium_exact + date + database