Hello, I am using the solr nightly version 4.5-2013-07-18_06-04-44 and I want to use "Document Entity" in schema.xml, I get this exception : java.lang.RuntimeException: schema fieldtype string(org.apache.solr.schema.StrField) invalid arguments:{xml:base=solrres:/commonschema_types.xml} at org.apache.solr.schema.FieldType.setArgs(FieldType.java:187) at org.apache.solr.schema.FieldTypePluginLoader.init(FieldTypePluginLoader.java:141) at org.apache.solr.schema.FieldTypePluginLoader.init(FieldTypePluginLoader.java:43) at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:190) ... 16 more
schema.xml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE schema [ <!ENTITY commonschema_types SYSTEM "commonschema_types.xml"> ]> <schema name="searchSolrSchema" version="1.5"> <types> <!-- Stuff --> &commonschema_types; </types> <!-- Stuff --> </schema> commonschema_types.xml: <?xml version="1.0" encoding="UTF-8" ?> <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> <!-- Stuff --> The same error appears in this bug (fixed ?): https://issues.apache.org/jira/browse/SOLR-3087 It works with solr-4.2.1. //----------------------------------------------------------------------------------------------------------------------------------------------------- I also try to use use XML XInclude mechanism (http://en.wikipedia.org/wiki/XInclude) to include parts of schema.xml. When I try to include a fieldType, I get this exception : org.apache.solr.common.SolrException: Unknown fieldType 'long' specified on field _version_ at org.apache.solr.schema.IndexSchema.loadFields(IndexSchema.java:644) at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:470) at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:164) at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55) at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69) at org.apache.solr.core.ZkContainer.createFromZk(ZkContainer.java:267) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:622) ... 10 more The type is not found. I include 'schema_integration.xml' like this in 'schema.xml' : <?xml version="1.0" encoding="UTF-8" ?> <schema name="default" version="1.5"> <types> <!-- Stuff --> <xi:include href="commonschema_types.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> </types> <!-- Stuff --> <fields> <field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/> <!-- Stuff --> </fields> </schema> Is it a bug of the nightly version ? Elodie Sannier Kelkoo SAS Société par Actions Simplifiée Au capital de € 4.168.964,30 Siège social : 8, rue du Sentier 75002 Paris 425 093 069 RCS Paris Ce message et les pièces jointes sont confidentiels et établis à l'attention exclusive de leurs destinataires. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur.