lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Talbot (JIRA)" <>
Subject [jira] Commented: (SOLR-1167) Support module xml config files using XInclude
Date Mon, 18 May 2009 23:22:45 GMT


Bryan Talbot commented on SOLR-1167:

Support for xinclude will allow a few options to include xml (or non-xml) content from an
external file.  The external file can be loaded from the file system or from any HTTP resource.

Here are some examples:

  <!-- include solrconfig_master.xml from the file system and generate an error if the
file can't be found -->
  <xi:include href="solr/conf/solrconfig_master.xml" xmlns:xi=""/>

  <!-- include solrconfig_master.xml from an HTTP URL and ignore it if it's missing -->
  <xi:include href="http://localhost:8983/solr/admin/file/?file=replication_master.xml"


  <!-- include solrconfig_master.xml from the filesystem.  If it cannot be found, attempt
        to include solrconfig_slave.xml from the filesystem.  If neither file can be found,
        generate an error.
  <xi:include href="solr/conf/solrconfig_master.xml" xmlns:xi="">
      <xi:include href="solr/conf/solrconfig_slave.xml" xmlns:xi="">

  <!-- attempt to include an optional file containing index options.  If the file can't
be found, fall back to some
        default values.
  <xi:include href="solr/conf/solrconfig_indexOptions.xml" xmlns:xi="">

I'll update the patch to include solrconfig_master.xml and solrconfig_slave.xml files if they
are present in the solr/conf directory.  The inclusions are currently commented out and the
resulting configuration is equivalent to the existing sample config.

> Support module xml config files using XInclude
> ----------------------------------------------
>                 Key: SOLR-1167
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Bryan Talbot
>            Priority: Minor
>         Attachments: SOLR-1167.patch
> Current configuration files (schema and solrconfig) are monolithic which can make maintenance
and reuse more difficult that it needs to be.  The XML standards include a feature to include
content from external files.  This is described at
> This feature is to add support for XInclude features for XML configuration files.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message