You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by David Stuart <da...@progressivealliance.co.uk> on 2009/10/11 15:28:54 UTC
xincludes schema help
> Hi,
>
> I am trying to get xincludes with xpointer working in schema.xml as
> per this closed issue requrest https://issues.apache.org/jira/browse/SOLR-1167
> .
>
>
> To make our upgrade path easier I want to be able to include extra
> custom fields
> in the schema and am including an extra set of fields inside the
> fields tags but
> keep getting a XPointer resolution unsuccessful error. Files below.
>
> <schema>
> <types>...</types>
> <fields>
> <field name="site" type="string" indexed="true" stored="true"/>
> <field name="hash" type="string" indexed="true" stored="true"/>
> <field name="url" type="string" indexed="true" stored="true"/>
>
> <xi:include href="/usr/local/solr_home/solr/db/conf/
> nutch_schema.xml"
> parse="xml" xpointer="./nutch/*"
> xmlns:xi="http://www.w3.org/2001/XInclude"/>
> </fields>
> </schema>
>
> -- Include file --
> <nutch>
> <!-- fields for index-basic plugin -->
> <field name="host" type="url" stored="false" indexed="true" />
> <field name="content" type="text" stored="true" indexed="true" />
> <copyField source="content" dest="body"/>
> <copyField source="content" dest="teaser"/>
> </nutch>
>
> I have also tried this to add muliple extra fieldType definitions
>
> <xi:include href="/usr/local/solr_home/solr/db/conf/
> nutch_schema.xml" parse="xml" xpointer="./extraFieldTypes/*"
> xmlns:xi="http://www.w3.org/2001/XInclude"/>
> <extraFieldTypes>
> <fieldType name="url" class="solr.TextField"
> positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.StandardTokenizerFactory" />
> </analyzer>
> </fieldType>
> <fieldType>....</fieldType>
> </extraFieldTypes>
> Any thoughts
>
> Thanks for your help
>
> Regards,
>
> David
xincludes schema help
Posted by David Stuart <da...@progressivealliance.co.uk>.
>> Hi,
>>
>> I am trying to get xincludes with xpointer working in schema.xml as
>> per this closed issue requrest https://issues.apache.org/jira/browse/SOLR-1167
>> .
>>
>>
>> To make our upgrade path easier I want to be able to include extra
>> custom fields
>> in the schema and am including an extra set of fields inside the
>> fields tags but
>> keep getting a XPointer resolution unsuccessful error. Files below.
>>
>> <schema>
>> <types>...</types>
>> <fields>
>> <field name="site" type="string" indexed="true" stored="true"/>
>> <field name="hash" type="string" indexed="true" stored="true"/>
>> <field name="url" type="string" indexed="true" stored="true"/>
>>
>> <xi:include href="/usr/local/solr_home/solr/db/conf/
>> nutch_schema.xml"
>> parse="xml" xpointer="./nutch/*"
>> xmlns:xi="http://www.w3.org/2001/XInclude"/>
>> </fields>
>> </schema>
>>
>> -- Include file --
>> <nutch>
>> <!-- fields for index-basic plugin -->
>> <field name="host" type="url" stored="false" indexed="true" />
>> <field name="content" type="text" stored="true" indexed="true" />
>> <copyField source="content" dest="body"/>
>> <copyField source="content" dest="teaser"/>
>> </nutch>
>>
>> I have also tried this to add muliple extra fieldType definitions
>>
>> <xi:include href="/usr/local/solr_home/solr/db/conf/
>> nutch_schema.xml" parse="xml" xpointer="./extraFieldTypes/*"
>> xmlns:xi="http://www.w3.org/2001/XInclude"/>
>> <extraFieldTypes>
>> <fieldType name="url" class="solr.TextField"
>> positionIncrementGap="100">
>> <analyzer>
>> <tokenizer class="solr.StandardTokenizerFactory" />
>> </analyzer>
>> </fieldType>
>> <fieldType>....</fieldType>
>> </extraFieldTypes>
>> Any thoughts
>>
>> Thanks for your help
>>
>> Regards,
>>
>> David