Author: bpoussin Date: 2010-12-26 16:28:04 +0100 (Sun, 26 Dec 2010) New Revision: 670 Url: http://nuiton.org/repositories/revision/wikitty/670 Log: - suppress suggestion config Modified: trunk/wikitty-solr-impl/src/main/resources/solrconfig.xml Modified: trunk/wikitty-solr-impl/src/main/resources/solrconfig.xml =================================================================== --- trunk/wikitty-solr-impl/src/main/resources/solrconfig.xml 2010-12-26 15:19:52 UTC (rev 669) +++ trunk/wikitty-solr-impl/src/main/resources/solrconfig.xml 2010-12-26 15:28:04 UTC (rev 670) @@ -47,7 +47,9 @@ org.apache.solr.(search|update|request|core|analysis) --> <directoryFactory name="DirectoryFactory" class="${wikitty.searchengine.solr.directory.factory:solr.StandardDirectoryFactory}"/> + <directoryFactory name="IndexReaderFactory" class="${wikitty.searchengine.solr.indexReader.factory:solr.StandardIndexReaderFactory}"/> + <indexDefaults> <!-- Values here affect all index writers and act as a default unless overridden. --> <useCompoundFile>false</useCompoundFile> @@ -291,18 +293,21 @@ <!-- Note how you can register the same handler multiple times with different names (and different init parameters) --> + <!-- + poussin 20101224 + je ne vois pas trop a quoi ca sert. Je pense que c juste un exemple <requestHandler name="partitioned" class="solr.SearchHandler" > <lst name="defaults"> <str name="defType">dismax</str> <str name="echoParams">explicit</str> <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str> <str name="mm">2<-1 5<-2 6<90%</str> - <!-- This is an example of using Date Math to specify a constantly + < ! - - This is an example of using Date Math to specify a constantly moving date range in a config... - --> + - - > <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str> </lst> - <!-- In addition to defaults, "appends" params can be specified + < ! - - In addition to defaults, "appends" params can be specified to identify values which should be appended to the list of multi-val params from the query (or the existing "defaults"). @@ -314,11 +319,11 @@ NOTE: there is *absolutely* nothing a client can do to prevent these "appends" values from being used, so don't use this mechanism unless you are sure you always want it. - --> + - - > <lst name="appends"> <str name="fq">inStock:true</str> </lst> - <!-- "invariants" are a way of letting the Solr maintainer lock down + <! - - "invariants" are a way of letting the Solr maintainer lock down the options available to Solr clients. Any params values specified here are used regardless of what values may be specified in either the query, the "defaults", or the "appends" params. @@ -333,7 +338,7 @@ NOTE: there is *absolutely* nothing a client can do to prevent these "invariants" values from being used, so don't use this mechanism unless you are sure you always want it. - --> + - - > <lst name="invariants"> <str name="facet.field">cat</str> <str name="facet.field">manu_exact</str> @@ -341,6 +346,7 @@ <str name="facet.query">price:[500 TO *]</str> </lst> </requestHandler> + --> <!-- @@ -377,6 +383,11 @@ <!-- The spell check component can return a list of alternative spelling suggestions. --> + <!-- + poussin 20101224 + pas besoin du spell check, et surtout il cree des repertoires, donc + pour le in memory c'est pas super. Si on ne veut pas qu'il cree de repertoire + il faut que les *Dir soit null. Dans ce cas il utilise des RAMDirectory <searchComponent name="spellcheck" class="solr.SpellCheckComponent"> <str name="queryAnalyzerFieldType">textSpell</str> @@ -390,7 +401,6 @@ <lst name="spellchecker"> <str name="name">jarowinkler</str> <str name="field">spell</str> - <!-- Use a different Distance Measure --> <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str> <str name="spellcheckIndexDir">./spellchecker2</str> @@ -405,20 +415,18 @@ </lst> </searchComponent> - <!-- a request handler utilizing the spellcheck component --> + < ! - - a request handler utilizing the spellcheck component - - > <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler"> <lst name="defaults"> - <!-- omp = Only More Popular --> <str name="spellcheck.onlyMorePopular">false</str> - <!-- exr = Extended Results --> <str name="spellcheck.extendedResults">false</str> - <!-- The number of suggestions to return --> <str name="spellcheck.count">1</str> </lst> <arr name="last-components"> <str>spellcheck</str> </arr> </requestHandler> + --> <!-- a search component that enables you to configure the top results for a given query regardless of the normal lucene scoring.-->