lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jorg Heymans (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-1758) schema definition for configuration files
Date Fri, 05 Feb 2010 10:25:28 GMT
schema definition for configuration files
-----------------------------------------

                 Key: SOLR-1758
                 URL: https://issues.apache.org/jira/browse/SOLR-1758
             Project: Solr
          Issue Type: New Feature
          Components: contrib - DataImportHandler
    Affects Versions: 1.4
            Reporter: Jorg Heymans


A schema definition would be able to spot the subtle error in below config 

{code}
    <dataSource name="ora" driver="oracle.jdbc.OracleDriver" url="...." />
    <datasource name="orablob" type="FieldStreamDataSource" />
    <document name="mydoc">
        <entity dataSource="ora" name="meta" query="select id, filename, bytes from documents"
>            
            <field column="ID" name="id" />
            <field column="FILENAME" name="filename" />
            <entity dataSource="orablob" processor="TikaEntityProcessor" url="bytes" dataField="meta.BYTES">
              <field column="text" name="mainDocument"/>
            </entity>
         </entity>
     </document>
{code}

Also, many xml editors support auto completion based on schema definition so it would be easier
to create configuration without constantly having to refer to javadoc or samples from the
distribution.

This applies equally to schema.xml and solr-config.xml



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


Mime
View raw message