You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by ry...@apache.org on 2007/12/02 18:35:56 UTC
svn commit: r600346 -
/lucene/solr/trunk/src/java/org/apache/solr/schema/IndexSchema.java
Author: ryan
Date: Sun Dec 2 09:35:52 2007
New Revision: 600346
URL: http://svn.apache.org/viewvc?rev=600346&view=rev
Log:
AbstractPluginLoader needs to return 'null' unless there was something registred to the same location
Modified:
lucene/solr/trunk/src/java/org/apache/solr/schema/IndexSchema.java
Modified: lucene/solr/trunk/src/java/org/apache/solr/schema/IndexSchema.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/schema/IndexSchema.java?rev=600346&r1=600345&r2=600346&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/schema/IndexSchema.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/schema/IndexSchema.java Sun Dec 2 09:35:52 2007
@@ -619,12 +619,12 @@
@Override
protected TokenizerFactory register(String name, TokenizerFactory plugin) throws Exception {
- return plugin; // does not need to do anything
+ return null; // used for map registration
}
};
tokenizerLoader.load( solrConfig.getResourceLoader(), (NodeList)xpath.evaluate("./tokenizer", node, XPathConstants.NODESET) );
- // Make sure somethign was loaded
+ // Make sure something was loaded
if( tokenizers.isEmpty() ) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,"analyzer without class or tokenizer & filter list");
}
@@ -646,7 +646,7 @@
@Override
protected TokenFilterFactory register(String name, TokenFilterFactory plugin) throws Exception {
- return plugin; // does not need to do anything
+ return null; // used for map registration
}
};
filterLoader.load( solrConfig.getResourceLoader(), (NodeList)xpath.evaluate("./filter", node, XPathConstants.NODESET) );