Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by NoblePaul: http://wiki.apache.org/solr/DataImportHandler ------------------------------------------------------------------------------ In order to get data from the database, our design philosophy revolves around 'templatized sql' entered by the user for each entity. This gives the user the entire power of SQL if he needs it. The root entity is the central table whose columns can be used to join this table with other child entities. - === Schema for the xml config === + === Schema for the data config === The dataconfig does not have a rigid schema. The attributes in the entity/field are arbitrary and depends on the `processor` and `transformer`. For !JdbcdataSource the entity attributes are The default attributes for an entity * '''`name`''' (required) : A unique name used to identify an entity - * '''`processor`''' (required) : The value must be ''!XPathEntityProcessor'' + * '''`processor`''' : Required only if the datasource is not RDBMS . (The default value is `SqlEntityProcessor`) * '''`transformer`''' : Transformers to be applied on this entity. (See the transformer section) * '''`dataSource`''' : The name of a datasource as put in the solrconfig.xml .(USed if there are multiple datasources) * '''`pk`''' : The primary key for the entity. Only needed for the root entity. This will be the id for the document
