Repository navigation
Output Connectors
End-User & Connector Documentation: End-User Guide · Included Connectors · Repository Connectors · Output Connectors · Transformation Connectors · Authority Connectors · User Mapping Connectors · Notification Connectors
- Amazon Cloud Search Output Connection
- CMIS Output Connection
- ElasticSearch Output Connection
- MongoDB Output Connection
- File System Output Connection
- HDFS Output Connection
- MetaCarta GTS Output Connection
- Null Output Connection
- OpenSearchServer Output Connection
- Solr Output Connection
The Amazon Cloud Search output connection type send documents to a specific path within a specified Amazon Cloud Search instance. The connection type furthermore "batches" documents to reduce cost as much as is reasonable. As a result, some specified documents may be sent at the end of a job run, rather than at the time they would typically be indexed.
The connection configuration information for the Amazon Cloud Search Output Connection type includes one additional tab: the "Server" tab. This tab looks like this:
Amazon Output Configuration, Server tab
You must supply the "Server host" field in order for the connection to work.
The Amazon Cloud Search Output Connection type does not contribute any tabs to a job definition.
The Amazon Cloud Search Output Connection type can only accept text content that is encoded in a UTF-8-compatible manner. It is highly recommended to use the Tika Content Extractor in the pipeline prior to the Amazon Cloud Search Output Connection type in order to convert documents to an indexable form.
In order to successfully index ManifoldCF documents in Amazon Cloud Search, you will need to describe a Cloud Search schema for receiving them. The fields that the Amazon Cloud Search output connection type sends are those that it gets specifically from the document as it comes through the ManifoldCF pipeline, with the addition of two hard-wired fields: "f_bodytext", containing the document body content, and "document_uri", containing the document's URI. You may also need to use the Metadata Adjuster transformation connection type to make sure that document metadata sent to Amazon Cloud Search agree with the schema you have defined there. Please refer to this document for details of how to set up an Amazon Cloud Search schema.
The CMIS Output Connection type allows you to migrate content to any CMIS-compliant repository.
By default each CMIS Connection manages a single CMIS repository, this means that if you have multiple CMIS repositories exposed by a single endpoint, you need to create a specific connection for each CMIS repository.
CMIS repository documents are typically secured by using the CMIS Authority Connection type. This authority type, however, does not have access to user groups, since there is no such functionality in the CMIS specification at this time. As a result, most people only use the CMIS connection type in an unsecured manner.
A CMIS Output connection has the following configuration parameters on the output connection editing screen:
CMIS Output Connection, configuration parameters
Select the correct CMIS binding protocol (AtomPub or Web Services) and enter the correct username, password and the endpoint to reference the CMIS document server services.
The endpoint consists of the HTTP protocol, hostname, port and the context path of the CMIS service exposed by the CMIS server:
http://HOSTNAME:PORT/CMIS_CONTEXT_PATH
The CMIS Query must be provided to select your own drop zone in the target folder that should be an existent CMIS folder.
By default the crawler will replicate the same source path structure for each content in that target folder.
Considering to have your contents in your source repository inside the following path:
/MySourceRepo/Invoices
And supposing to have configured your CMIS Output Connection with the default value of the CMIS Query for your target folder:
SELECT * FROM cmis:folder WHERE cmis:name='Apache ManifoldCF'
All the migrated contents will be dropped in the following target CMIS folder:
/path/to/your/Apache ManifoldCF/MySourceRepo/Invoices
Optionally you can provide the repository ID to select one of the exposed CMIS repository, if this parameter is null the CMIS Connector will consider the first CMIS repository exposed by the CMIS server.
Note that, in a CMIS system, a specific binding protocol has its own context path, this means that the endpoints are different:
for example the endpoint of the AtomPub binding exposed by the actual version of the InMemory Server provided by the OpenCMIS framework is the following:
http://localhost:8080/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT/atom
The Web Services binding is exposed using a different endpoint:
http://localhost:8080/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT/services/RepositoryService
The ElasticSearch Output Connection type allows ManifoldCF to submit documents to an ElasticSearch instance, via the XML over HTTP API. The connector has been designed to be as easy to use as possible.
After creating an ElasticSearch output connection, you have to populate the parameters tab. Fill in the fields according your ElasticSearch configuration. Each ElasticSearch output connector instance works with one index. To work with multiple indexes, just create one output connector for each index.
ElasticSearch, parameters tab
The parameters are:
- Server location: An URL that references your ElasticSearch instance. The default value (http://localhost:9200) is valid if your ElasticSearch instance runs on the same server than the ManifoldCF instance.
- Index name: The connector will populate the index defined here.
Once you created a new job, having selected the ElasticSearch output connector, you will have the ElasticSearch tab. This tab let you:
- Fix the maximum size of a document before deciding to index it. The value is in bytes. The default value is 16MB.
- The allowed mime types. Warning it does not work with all repository connectors.
- The allowed file extensions. Warning it does not work with all repository connectors.
ElasticSearch, job parameters
In the history report you will be able to monitor all the activites. The connector supports three activites: Document ingestion (Indexation), document deletion and index optimization. The targeted index is automatically optimized when the job is ending.
ElasticSearch, history report
You may also refer to ElasticSearch's user documentation. Especially important is the need to configure the ElasticSearch index mapping before you try to index anything. If you have not configured the ElasticSearch mapping properly, then the documents you send to ElasticSearch via ManifoldCF will not be parsed, and once you send a document to the index, you cannot fix this in ElasticSearch without discarding your index. Specifically, you will want a mapping that enables the attachment plug-in, for example something like this:
{
"attachment" :
{
"properties" :
{
"file" :
{
"type" : "attachment",
"fields" :
{
"title" : { "store" : "yes" },
"keywords" : { "store" : "yes" },
"author" : { "store" : "yes" },
"content_type" : {"store" : "yes"},
"name" : {"store" : "yes"},
"date" : {"store" : "yes"},
"file" : { "term_vector":"with_positions_offsets", "store":"yes" }
}
}
}
}
}
Obviously, you would want your mapping to have details consistent with your particular indexing task. You can change the mapping or inspect it using the curl tool, which you can download from http://curl.haxx.se. For example, to inspect the mapping for a version of ElasticSearch running locally on port 9200:
curl -XGET http://localhost:9200/index/_mapping
The MongoDB Output Connection type allows you to store documents in a Mongodb instance.
By default each MongoDB Output Connection manages a single Mongodb collection, to work with multiple MongoDB collections(even if they exist in the same MongoDB instance), you need to create a specific connection for each MongoDB collection.
A MongoDB Output connection has the following configuration parameters on the output connection editing screen:
MongoDB Output Connection, configuration parameters
Specify the Hostname and Port Number corresponding to the target MongoDB instance to reference the MongoDB server(mongod) and enter the correct username, password as the credentials.
Provide a Database name and a Collection name to uniquely specify where the documents are to be migrated.
Note that if the specified Database or the specified Collection does not exist in the target MongoDB instance those will be created automatically.
The File System output connection type allows ManifoldCF to store documents in a local filesystem, using the conventions established by the Unix utility called wget. Documents stored by this connection type will not include any metadata or security information, but instead consist solely of a binary file.
The connection configuration information for the File System output connection type includes no additional tabs. There is an additional job tab, however, called "Output Path". The tab looks like this:
File System Specification, Output Path tab
Fill in the path you want the connection type to use to write the documents to. Then, click the "Save" button.
The HDFS output connection type allows ManifoldCF to store documents in HDFS, using the conventions established by the Unix utility called wget. Documents stored by this connection type will not include any metadata or security information, but instead consist solely of a binary file.
The connection configuration information for the HDFS output connection type includes one additional tab: the "Server" tab. This tab looks like this:
HDFS Output Configuration, Server tab
Fill in the name node URI and the user name. Both are required.
For the HDFS output connection type, there is an additional job tab called "Output Path". The tab looks like this:
HDFS Output Specification, Output Path tab
Fill in the path you want the connection type to use to write the documents to. Then, click the "Save" button.
The MetaCarta GTS output connection type is designed to allow ManifoldCF to submit documents to an appropriate MetaCarta GTS search appliance, via the appliance's HTTP Ingestion API.
The connection type implicitly understands that GTS can only handle text, HTML, XML, RTF, PDF, and Microsoft Office documents. All other document types will be considered to be unindexable. This helps prevent jobs based on a GTS-type output connection from fetching data that is large, but of no particular relevance.
When you configure a job to use a GTS-type output connection, two additional tabs will be presented to the user: "Collections" and "Document Templates". These tabs allow per-job specification of these GTS-specific features.
More here later
The null output connection type is meant primarily to function as an aid for people writing repository connection types. It is not expected to be useful in practice.
The null output connection type simply logs indexing and deletion requests, and does nothing else. It does not have any special configuration tabs, nor does it contribute tabs to jobs defined that use it.
The OpenSearchServer Output Connection allow ManifoldCF to submit documents to an OpenSearchServer instance, via the XML over HTTP API. The connector has been designed to be as easy to use as possible.
After creating an OpenSearchServer ouput connection, you have to populate the parameters tab. Fill in the fields according your OpenSearchServer configuration. Each OpenSearchServer output connector instance works with one index. To work with muliple indexes, just create one output connector for each index.
OpenSearchServer, parameters tab
The parameters are:
- Server location: An URL that references your OpenSearchServer instance. The default value (http://localhost:8080) is valid if your OpenSearchServer instance runs on the same server than the ManifoldCF instance.
- Index name: The connector will populate the index defined here.
- User name and API Key: The credentials required to connect to the OpenSearchServer instance. It can be left empty if no user has been created. The next figure shows where to find the user's informations in the OpenSearchServer user interface.
OpenSearchServer, user configuration
Once you created a new job, having selected the OpenSearchServer output connector, you will have the OpenSearchServer tab. This tab let you:
- Fix the maximum size of a document before deciding to index it. The value is in bytes. The default value is 16MB.
- The allowed mime types. Warning it does not work with all repository connectors.
- The allowed file extensions. Warning it does not work with all repository connectors.
OpenSearchServer, job parameters
In the history report you will be able to monitor all the activites. The connector supports three activites: Document ingestion (Indexation), document deletion and index optimization. The targeted index is automatically optimized when the job is ending.
OpenSearchServer, history report
You may also refer to the OpenSearchServer's user documentation.
The Solr output connection type is designed to allow ManifoldCF to submit documents to either an appropriate Apache Solr instance, via the Solr HTTP API, or alternatively to a Solr Cloud cluster. The configuration parameters are initially set to appropriate default values for a stand-alone Solr instance.
When you create a Solr output connection, multiple configuration tabs appear. The first tab is the "Solr type" tab. Here you select whether you want your connection to communicate to a standalone Solr instance, or to a Solr Cloud cluster:
Solr Configuration, Solr type tab
Select which kind of Solr installation you want to communicate with. Based on your selection, you can proceed to either the "Server" tab (if a standalone instance) or to the "ZooKeeper" tab (if a SolrCloud cluster).
The "Server" tab allows you to configure the HTTP parameters appropriate for communicating with a standalone Solr instance:
Solr Configuration, Server tab
If your Solr setup is a standalone instance, fill in the fields according to your Solr configuration. The Solr connection type supports only basic authentication at this time; if you have this enabled, supply the credentials as requested on the bottom part of the form.
The "Zookeeper" tab allows your to configure the connection type to communicate with a Solr Cloud cluster:
Solr Configuration, Zookeeper tab
Here, add each ZooKeeper instance in the SolrCloud cluster to the list of ZooKeeper instances. The connection comes preconfigured with "localhost" as being a ZooKeeper instance. You may delete this if it is not the case.
The next tab is the "Schema" tab, which allows you to specify the names of various Solr fields into which the Solr connection type will place built-in document metadata:
Solr Configuration, Schema tab
The most important of these is the document identifier field, which MUST be present for the connection type to function. This field will be used to uniquely identify the document within Solr, and will contain the document's URL. The Solr connection type will treat this field as being a unique key for locating the indexed document for further modification or deletion. The other Solr fields are optional, and largely self- explanatory.
The next tab is the "Arguments" tab, which allows you to specify arbitrary arguments to be sent to Solr:
Solr Configuration, Arguments tab
Fill in the argument name and value, and click the "Add" button. Bear in mind that if you add an argument with the same name as an existing one, it will replace the existing one with the new specified value. You can delete existing arguments by clicking the "Delete" button next to the argument you want to delete.
Use this tab to specify any and all desired Solr update request parameters. You can, for instance, add update.chain=myChain to select a specific document processing pipeline/chain to use for processing documents. See the Solr documentation for more valid arguments.
The next tab is the "Documents" tab, which allows you to do document filtering based on size and mime types. By specifying a maximum document length in bytes, you can filter out documents which exceed that size (e.g. 10485760 which is equivalent to 10 MB). If you only want to add documents with specific mime types, you can enter them into the "included mime types" field (e.g. "text/html" for filtering out all documents but HTML). The "excluded mime types" field is for excluding documents with specific mime types (e.g. "image/jpeg" for filtering out JPEG images). The tab looks like:
Solr Configuration, Documents tab
The fifth tab is the "Commits" tab, which allows you to control the commit strategies. As well as committing documents at the end of every job, an option which is enabled by default, you may also commit each document within a certain time in milliseconds (e.g. "10000" for committing within 10 seconds). The commit within strategy will leave the responsibility to Solr instead of ManifoldCF. The tab looks like:
Solr Configuration, Documents tab
When you are done, don't forget to click the "Save" button to save your changes! When you do, a connection summary and status screen will be presented, which may look something like this:
Solr Status
Note that in this example, the Solr connection is not responding, which is leading to an error status message instead of "Connection working".
In addition to the output connectors documented above, Apache ManifoldCF trunk also includes modules for Kafka (connectors/kafka) and SearchBlox (connectors/searchblox). See Included Connectors for the full compatibility matrix.
Apache ManifoldCF™ — Website · GitHub · Jira (CONNECTORS) · Mailing Lists · Security Policy · Apache License 2.0
Apache, Apache ManifoldCF, and the Apache feather logo are trademarks of The Apache Software Foundation.
- End-User Guide
- Included Connectors
- Repository Connectors
- Output Connectors
- Transformation Connectors
- Authority Connectors
- User Mapping Connectors
- Notification Connectors
- ManifoldCF SDK
- Developer Resources
- Writing Repository Connectors
- Writing Output Connectors
- Writing Authority Connectors
- Writing Mapping Connectors
- Writing Transformation Connectors