lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Stuart <david.stu...@progressivealliance.co.uk>
Subject xincludes schema help
Date Sun, 11 Oct 2009 13:28:54 GMT
> 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

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message