11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

LineEntityProcessor<br />

This EntityProcessor reads all content from the data source on a line by line basis and returns a field called rawL<br />

ine for each line read. The content is not parsed in any way; however, you may add transformers to manipulate<br />

the data within the rawLine field, or to create other additional fields.<br />

The lines read can be filtered by two regular expressions specified with the acceptLineRegex and omitLineR<br />

egex attributes. The table below describes the LineEntityProcessor's attributes:<br />

Attribute<br />

Description<br />

url<br />

acceptLineRegex<br />

omitLineRegex<br />

A required attribute that specifies the location of the input file in a way that is compatible<br />

with the configured data source. If this value is relative and you are using FileDataSource<br />

or URLDataSource, it assumed to be relative to baseLoc.<br />

An optional attribute that if present discards any line which does not match the regExp.<br />

An optional attribute that is applied after any acceptLineRegex and that discards any line<br />

which matches this regExp.<br />

For example:<br />

<br />

...<br />

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

220

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

Saved successfully!

Ooh no, something went wrong!