11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The URLDataSource type accepts these optional parameters:<br />

Optional<br />

Parameter<br />

baseURL<br />

connectionTimeout<br />

encoding<br />

readTimeout<br />

Description<br />

Specifies a new baseURL for pathnames. You can use this to specify host/port changes<br />

between Dev/QA/Prod environments. Using this attribute isolates the changes to be<br />

made to the solrconfig.xml<br />

Specifies the length of time in milliseconds after which the connection should time out.<br />

The default value is 5000ms.<br />

By default the encoding in the response header is used. You can use this property to<br />

override the default encoding.<br />

Specifies the length of time in milliseconds after which a read operation should time out.<br />

The default value is 10000ms.<br />

Entity Processors<br />

Entity processors extract data, transform it, and add it to a <strong>Solr</strong> index. Examples of entities include views or<br />

tables in a data store.<br />

Each processor has its own set of attributes, described in its own section below. In addition, there are<br />

non-specific attributes common to all entities which may be specified.<br />

Attribute<br />

dataSource<br />

name<br />

pk<br />

processor<br />

onError<br />

preImportDeleteQuery<br />

postImportDeleteQuery<br />

Use<br />

The name of a data source. If there are multiple data sources defined, use this<br />

attribute with the name of the data source for this entity.<br />

Required. The unique name used to identify an entity.<br />

The primary key for the entity. It is optional, and required only when using<br />

delta-imports. It has no relation to the uniqueKey defined in schema.xml but they<br />

can both be the same. It is mandatory if you do delta-imports and then refers to the<br />

column name in ${dataimporter.delta. } which is used as the<br />

primary key.<br />

Default is SqlEntityProcessor. Required only if the datasource is not RDBMS.<br />

Permissible values are (abort|skip|continue) . The default value is 'abort'. 'Skip' skips<br />

the current document. 'Continue' ignores the error and processing continues.<br />

Before a full-import command, use this query this to cleanup the index instead of<br />

using '*:*'. This is honored only on an entity that is an immediate sub-child of .<br />

Similar to the above, but executed after the import has completed.<br />

rootEntity By default the entities immediately under the are root entities. If this<br />

attribute is set to false, the entity directly falling under that entity will be treated as<br />

the root entity (and so on). For every row returned by the root entity, a document is<br />

created in <strong>Solr</strong>.<br />

transformer<br />

Optional. One or more transformers to be applied on this entity.<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!