Valid from 5.5

Available for both the Enterprise edition and the Community edition of Datafari.

The Regex Entity Connector is used to extract information from the content of a document thanks to a regular expression and populate a Solr metadata with the result.

Here is some applications:

How to use it

Add the Regex Entity Connector in the job pipeline in the Connection tab of MCF.

It must be inserted after the TikaServerRmetaConnector. It needs the document to be transformed in text, otherwise the document contains only binary data.

Then in configuration screen:

Column Metadata: the metadata to be filled. Some valid metadata are given as example.

Associated regular expression: the regular expression used to extract data and fill the metadata. An example is given to retrieve the line in the document containing the word “option“, case insensitive.

  • The metadata must exists in Solr environment (no check done).

  • Because of the fact that several values can be found in a document, take care to choose a multi-valued metadata.

  • You can define only one regular expression per metadata for this version.

You can add as metadata as you want.
If a metadata is already present and you add the same with another regular expression, this one will replace the current.

Some examples of useful regular expression:

More examples here : Regex typical use cases