1. Adding handler.component to package list in SolrResourceLoader

2. Changing solrconfig.xml to use short names for SearchHandler and all components

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@685786 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2008-08-14 06:50:48 +00:00
parent 12039e19e7
commit 1b69ba9a4c
2 changed files with 6 additions and 8 deletions

View File

@ -503,7 +503,7 @@
</requestHandler>
<searchComponent name="spellcheck" class="org.apache.solr.handler.component.SpellCheckComponent">
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">textSpell</str>
@ -531,9 +531,7 @@
</lst>
</searchComponent>
<queryConverter name="queryConverter" class="org.apache.solr.spelling.SpellingQueryConverter"/>
<requestHandler name="/spellCheckCompRH" class="org.apache.solr.handler.component.SearchHandler">
<requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">
<lst name="defaults">
<!-- omp = Only More Popular -->
<str name="spellcheck.onlyMorePopular">false</str>
@ -571,7 +569,7 @@
-->
<requestHandler name="/search" class="org.apache.solr.handler.component.SearchHandler">
<requestHandler name="/search" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
</lst>
@ -599,13 +597,13 @@
-->
</requestHandler>
<searchComponent name="elevator" class="org.apache.solr.handler.component.QueryElevationComponent" >
<searchComponent name="elevator" class="solr.QueryElevationComponent" >
<!-- pick a fieldType to analyze queries -->
<str name="queryFieldType">string</str>
<str name="config-file">elevate.xml</str>
</searchComponent>
<requestHandler name="/elevate" class="org.apache.solr.handler.component.SearchHandler" startup="lazy">
<requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
<lst name="defaults">
<str name="echoParams">explicit</str>
</lst>

View File

@ -61,7 +61,7 @@ public class SolrResourceLoader implements ResourceLoader
static final String project = "solr";
static final String base = "org.apache" + "." + project;
static final String[] packages = {"","analysis.","schema.","handler.","search.","update.","core.","request.","update.processor.","util.", "spelling."};
static final String[] packages = {"","analysis.","schema.","handler.","search.","update.","core.","request.","update.processor.","util.", "spelling.", "handler.component."};
private final ClassLoader classLoader;
private final String instanceDir;