<?xml version="1.0"?>

<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<document>
    <header><title>ManifoldCF- End-user Documentation</title></header>
    <properties>
    </properties>
    <body>

        <section id="overview">
            <title>Overview</title>
            <p>This manual is intended for an end-user of ManifoldCF.  It is assumed that the Framework has been properly installed, either by you or by a system integrator,
                   with all required services running and desired connection types properly registered.  If you think you need to know how to do that yourself, please visit the "Developer Resources" page.
            </p>
            <p>Most of this manual describes how to use the ManifoldCF user interface.  On a standard ManifoldCF deployment, you would reach that interface by giving your browser
                  a URL something like this: <code>http://my-server-name:8345/mcf-crawler-ui</code>.  This will, of course, differ from system to system.  Please contact your system administrator
                  to find out what URL is appropriate for your environment.
            </p>
            <p>The ManifoldCF UI has been tested with Firefox and various incarnations of Internet Explorer.  If you use another browser, there is a small chance that the UI
                  will not work properly.  Please let your system integrator know if you find any browser incompatibility problems.</p>
            <p>When you enter the Framework user interface the first time, you will first be asked to log in:</p>
            <br/><br/>
            <figure src="images/en_US/login.PNG" alt="Login Screen" width="80%"/>
            <br/><br/>
            <p>Enter the login user name and password for your system.  By default, the user name is "admin" and the password is "admin", although your
                  system administrator can (and should) change this.  Then, click the "Login" button.  If you entered the correct credentials, you should see a
                  screen that looks something like this:</p>
            <br/><br/>
            <figure src="images/en_US/welcome-screen.PNG" alt="Welcome Screen" width="80%"/>
            <br/><br/>
            <p>On the left, there are menu options you can select.  The main pane on the right shows a welcome message, but depending on what you select on the left, the contents of the main pane
                  will change.  Before you try to accomplish anything, please take a moment to read the descriptions below of the menu selections, and thus get an idea of how the Framework works
                  as a whole.
            </p>
            <section id="outputs">
                <title>Defining Output Connections</title>
                <p>The Framework UI's left-side menu contains a link for listing output connections.  An output connection is a connection to a system or place where documents fetched from various
                       repositories can be written to.  This is often a search engine.</p>
                <p>All jobs must specify an output connection.  You can create an output connection by clicking the "List Output Connections" link in the left-side navigation menu.  When you do this, the
                       following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-output-connections.PNG" alt="List Output Connections" width="80%"/>
                <br/><br/>
                <p>On a freshly created system, there may well be no existing output connections listed.  If there are already output connections, they will be listed on this screen, along with links that allow
                      you to view, edit, or delete them.  To create a new output connection, click the "Add new output connection" link at the bottom.  The following screen will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-output-connection-name.PNG" alt="Add New Output Connection, specify Name" width="80%"/>
                <br/><br/>
                <p>The tabs across the top each present a different view of your output connection.  Each tab allows you to edit a different characteristic of that connection.  The exact set of tabs you see
                       depends on the connection type you choose for the connection.</p>
                <p>Start by giving your connection a name and a description.  Remember that all output connection names must be unique, and cannot be changed after the connection is defined.  The name must be
                       no more than 32 characters long.  The description can be up to 255 characters long.  When you are done, click on the "Type" tab.  The Type tab for the connection will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-output-connection-type.PNG" alt="Add New Output Connection, select Type" width="80%"/>
                <br/><br/>
                <p>The list of output connection types in the pulldown box, and what they are each called, is determined by your system integrator.  The configuration tabs for each different kind of output connection
                       type are described in separate sections below.</p>
                <p>After you choose an output connection type, click the "Continue" button at the bottom of the pane.  You will then see all the tabs appropriate for that kind of connection appear, and a
                       "Save" button will also appear at the bottom of the pane.  You <b>must</b> click the "Save" button when you are done in order to create your connection.  If you click "Cancel" instead, the new connection
                       will not be created.  (The same thing will happen if you click on any of the navigation links in the left-hand pane.)</p>
                <p>Every output connection has a "Throttling" tab.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/output-throttling.PNG" alt="Output Connection Throttling" width="80%"/>
                <br/><br/>
                <p>On this tab, you can specify only one thing: how many open connections are allowed at any given time to the system the output connection talks with.  This restriction helps prevent
                       that system from being overloaded, or in some cases exceeding its license limitations.  Conversely, making this number larger allows for greater overall throughput.  The default
                       value is 10, which may not be optimal for all types of output connections.  Please refer to the section of the manual describing your output connection type for more precise
                       recommendations.
                </p>
                <p>Please refer to the section of the manual describing your chosen output connection type for a description of the tabs appropriate for that connection type.</p>

                <p>After you save your connection, a summary screen will be displayed that describes your connection's configuration.  This looks something like this (although the details will differ
                      somewhat based on what connection type you chose):</p>
                <br/><br/>
                <figure src="images/en_US/view-output-connection.PNG" alt="View Output Connection" width="80%"/>
                <br/><br/>
                <p>The summary screen contains a line where the connection's status is displayed.  If you did everything correctly, the message "Connection working" will be displayed as a status.
                      If there was a problem, you will see a connection-type-specific diagnostic message instead.  If this happens, you will need to correct the problem, by either fixing your infrastructure,
                      or by editing the connection configuration appropriately, before the output connection will work correctly.</p>
                <p>Also note that there are five buttons along the bottom of the display: "Refresh", "Edit", "Delete", "Re-index all associated documents", and "Remove all associated records".  We'll
                      go into the purpose for each of these buttons in turn.</p>
                <p>The "Refresh" button simply reloads the view page for the output connection, and updates the connection status.  Use this button when you have made changes to the external system
                      your output connection is connected to that might affect whether the connection will succeed or not.</p>
                <p>The "Edit" button allows you to go back and edit the connection parameters.  Use this button if you want to change the connection's characteristics or specifications in any way.</p>
                <p>The "Delete" button allows you to delete the connection.  Use this button if you no longer want the connection to remain in the available list of output connections.  Note that ManifoldCF
                      will not allow you to delete a connection that is being referenced by a job.</p>
                <p>The "Re-index all associated documents" button will nullify the recorded versions of all documents currently indexed via this connection.  This is not a button you would use often.  Click
                      it when you have changed the configuration of whatever system the output connection is describing, and therefore all documents will eventually need to be reindexed.</p>
                <p>The "Remove all associated documents" button will remove from ManifoldCF all knowledge that any indexing has taken place at all to this connection.  This is also not a button you would use
                      often.  Click it when you have removed the entire index that the output connection describes from the target repository.</p>
            </section>

            <section id="transformations">
                <title>Defining Transformation Connections</title>
                <p>The Framework UI's left-side menu contains a link for listing transformation connections.  A transformation connection is a connection to an engine where documents fetched from various
                       repositories can be manipulated.  This typically involves metadata extraction or mapping.</p>
                <p>A job does not need to specify any transformation connections.  In many cases, the final destination search engine has an included data conversion pipeline.  But in the case
                       where such data extraction and conversion is not available, ManifoldCF provides a way of taking care of it internally.</p>
                <p>You can create a transformation connection by clicking the "List Transformation Connections" link in the left-side navigation menu.  When you do this, the
                       following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-transformation-connections.PNG" alt="List Transformation Connections" width="80%"/>
                <br/><br/>
                <p>On a freshly created system, there may well be no existing transformation connections listed.  If there are already transformation connections, they will be listed on this screen, along with links that allow
                      you to view, edit, or delete them.  To create a new transformation connection, click the "Add new transformation connection" link at the bottom.  The following screen will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-transformation-connection-name.PNG" alt="Add New Transformation Connection, specify Name" width="80%"/>
                <br/><br/>
                <p>The tabs across the top each present a different view of your transformation connection.  Each tab allows you to edit a different characteristic of that connection.  The exact set of tabs you see
                       depends on the connection type you choose for the connection.</p>
                <p>Start by giving your connection a name and a description.  Remember that all transformation connection names must be unique, and cannot be changed after the connection is defined.  The name must be
                       no more than 32 characters long.  The description can be up to 255 characters long.  When you are done, click on the "Type" tab.  The Type tab for the connection will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-transformation-connection-type.PNG" alt="Add New Transformation Connection, select Type" width="80%"/>
                <br/><br/>
                <p>The list of transformation connection types in the pulldown box, and what they are each called, is determined by your system integrator.  The configuration tabs for each different kind of transformation connection
                       type are described in separate sections below.</p>
                <p>After you choose a transformation connection type, click the "Continue" button at the bottom of the pane.  You will then see all the tabs appropriate for that kind of connection appear, and a
                       "Save" button will also appear at the bottom of the pane.  You <b>must</b> click the "Save" button when you are done in order to create your connection.  If you click "Cancel" instead, the new connection
                       will not be created.  (The same thing will happen if you click on any of the navigation links in the left-hand pane.)</p>
                <p>Every transformation connection has a "Throttling" tab.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/transformation-throttling.PNG" alt="Transformation Connection Throttling" width="80%"/>
                <br/><br/>
                <p>On this tab, you can specify only one thing: how many open connections are allowed at any given time to the system the transformation connection talks with.  This restriction helps prevent
                       that system from being overloaded, or in some cases exceeding its license limitations.  Conversely, making this number larger allows for greater overall throughput.  The default
                       value is 10, which may not be optimal for all types of output connections.  Please refer to the section of the manual describing your transformation connection type for more precise
                       recommendations.
                </p>
                <p>Please refer to the section of the manual describing your chosen transformation connection type for a description of the tabs appropriate for that connection type.</p>

                <p>After you save your connection, a summary screen will be displayed that describes your connection's configuration.  This looks something like this (although the details will differ
                      somewhat based on what connection type you chose):</p>
                <br/><br/>
                <figure src="images/en_US/view-transformation-connection.PNG" alt="View Transformation Connection" width="80%"/>
                <br/><br/>
                <p>The summary screen contains a line where the connection's status is displayed.  If you did everything correctly, the message "Connection working" will be displayed as a status.
                      If there was a problem, you will see a connection-type-specific diagnostic message instead.  If this happens, you will need to correct the problem, by either fixing your infrastructure,
                      or by editing the connection configuration appropriately, before the transformation connection will work correctly.</p>
                <p>Also note that there are three buttons along the bottom of the display: "Refresh", "Edit", and "Delete".  We'll
                      go into the purpose for each of these buttons in turn.</p>
                <p>The "Refresh" button simply reloads the view page for the transformation connection, and updates the connection status.  Use this button when you have made changes to the external system
                      your transformation connection is connected to that might affect whether the connection will succeed or not.</p>
                <p>The "Edit" button allows you to go back and edit the connection parameters.  Use this button if you want to change the connection's characteristics or specifications in any way.</p>
                <p>The "Delete" button allows you to delete the connection.  Use this button if you no longer want the connection to remain in the available list of transformation connections.  Note that ManifoldCF
                      will not allow you to delete a connection that is being referenced by a job.</p>
            </section>

            <section id="groups">
                <title>Defining Authority Groups</title>
                <p>The Framework UI's left-side menu contains a link for listing authority groups.  An authority group is a collection of authorities that all cooperate to furnish
                      security for each document from repositories that you select.  For example, a SharePoint 2010 repository with the Claims Based authorization feature enabled may
                      contain documents that are authorized by SharePoint itself, by Active Directory, and by others.  Documents from such a SharePoint
                      repository would therefore refer to a authority group which would have a SharePoint native authority, a SharePoint Active Directory authority,
                      and other SharePoint claims based authorities as members.  But most of the time, an authority group will consist of a single authority that is appropriate for
                      the repository the authority group is meant to secure.</p>
                <p>Since you need to select an authority group when you define an authority connection, you should define your authority groups <b>before</b> setting
                      up your authority connections.  If you don't have any authority groups defined, you cannot create authority connections at all.  But if you select the
                      wrong authority group when setting up your authority connection, you can go back later and change your selection.</p>
                <p>It is also a good idea to define your authority groups before creating any repository connections, since each repository connection will also need to
                      refer back to an authority group in order to secure documents.  While it is possible to change the relationship between a repository connection
                       and its authority group after-the-fact, in practice such changes may cause many documents to be reindexed the next time an associated job is run.</p>
                <p>You can create an authority group by clicking the "List Authority Groups" link in the left-side navigation menu.  When you do this, the
                       following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-authority-groups.PNG" alt="List Authority Groups" width="80%"/>
                <br/><br/>
                <p>If there are already authority groups, they will be listed on this screen, along with links that allow you to view, edit, or delete them.  To create a new
                      authority group, click the "Add a new authority group" link at the bottom.  The following screen will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-authority-group-name.PNG" alt="Add New Authority Group, specify Name" width="80%"/>
                <br/><br/>
                <p>The tabs across the top each present a different view of your authority group.  For authority groups, there is only ever one tab, the "Name" tab.</p>
                <p>Give your authority group a name and a description.  Remember that all authority group names must be unique, and cannot be changed after the
                      authority group is defined.  The name must be no more than 32 characters long.  The description can be up to 255 characters long.  When you are
                      done, click on the "Save" button.  You <b>must</b> click the "Save" button when you are done in order to create or update your authority group.
                      If you click "Cancel" instead, the new authority group will not be created.  (The same thing will happen if you click on any of the navigation links in
                      the left-hand pane.)</p>
                <p>After you save your authority group, a summary screen will be displayed that describes the group, and you can proceed on to create any authority
                      connections that belong to the authority group, or repository connections that refer to the authority group.</p>

            </section>

            <section id="connections">
                <title>Defining Repository Connections</title>
                <p>The Framework UI's left-hand menu contains a link for listing repository connections.  A repository connection is a connection to the repository system that contains the documents
                       that you are interested in indexing.</p>
                <p>All jobs require you to specify a repository connection, because that is where they get their documents from.  It is therefore necessary to create a repository connection before
                       indexing any documents.</p>
                <p>A repository connection also may have an associated authority group.  This specified authority group determines the security environment in which documents
                      from the repository connection are attached.  While it is possible to change the specified authority group for a repository connection after a crawl has been done,
                      in practice this will require all documents associated with that repository connection be reindexed in order to be searchable by anyone.  Therefore, we recommend
                      that you set up your desired authority group before defining your repository connection.</p>
                <p>You can create a repository connection by clicking the "List Repository Connections" link in the left-side navigation menu.  When you do this, the
                       following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-repository-connections.PNG" alt="List Repository Connections" width="80%"/>
                <br/><br/>
                <p>On a freshly created system, there may well be no existing repository connections listed.  If there are already repository connections, they will be listed on this
                    screen, along with links that allow you to view, edit, or delete them.  To create a new repository connection, click the "Add a new connection" link at the bottom.
                    The following screen will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-repository-connection-name.PNG" alt="Add New Repository Connection, specify Name" width="80%"/>
                <br/><br/>
                <p>The tabs across the top each present a different view of your repository connection.  Each tab allows you to edit a different characteristic of that connection.  The exact set of tabs you see
                       depends on the connection type you choose for the connection.</p>
                <p>Start by giving your connection a name and a description.  Remember that all repository connection names must be unique, and cannot be changed after the connection is defined.  The name must be
                       no more than 32 characters long.  The description can be up to 255 characters long.  When you are done, click on the "Type" tab.  The Type tab for the connection will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-repository-connection-type.PNG" alt="Add New Repository Connection, select Type" width="80%"/>
                <br/><br/>
                <p>The list of repository connection types in the pulldown box, and what they are each called, is determined by your system integrator.  The configuration tabs
                      for each different kind of repository connection type are described in this document in separate sections below.</p>
                <p>You may also at this point select the authority group to use to secure all documents fetched from this repository with.  You do not need to define your
                      authority group's authority connections before doing this step, but you will not be able to search for your documents after indexing them until you do.</p>
                <p>After you choose the desired repository connection type and an authority group (if desired), click the "Continue" button at the bottom of the pane.  You will
                      then see all the tabs appropriate for that kind of connection appear, and a "Save" button will also appear at the bottom of the pane.  You <b>must</b> click
                      the "Save" button when you are done in order to create or update your connection.  If you click "Cancel" instead, the new connection
                      will not be created.  (The same thing will happen if you click on any of the navigation links in the left-hand pane.)</p>
                <p>Every repository connection has a "Throttling" tab.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/repository-throttling.PNG" alt="Repository Connection Throttling" width="80%"/>
                <br/><br/>
                <p>On this tab, you can specify two things.  The first is how many open connections are allowed at any given time to the system the repository connection talks with.  This restriction helps prevent
                       that system from being overloaded, or in some cases exceeding its license limitations.  Conversely, making this number larger allows for smaller average search latency.  The default
                       value is 10, which may not be optimal for all types of repository connections.  Please refer to the section of the manual describing your authority connection type for more precise
                       recommendations.  The second specifies how rapidly, on average, the crawler will fetch documents via this connection.
                </p>
                <p>Each connection type has its own notion of "throttling bin".  A throttling bin is the name of a resource whose access needs to be throttled.  For example, the Web connection type uses a
                       document's server name as the throttling bin associated with the document, since (presumably) it will be access to each individual server that will need to be throttled independently.
                </p>
                <p>On the repository connection "Throttling" tab, you can specify an unrestricted number of throttling descriptions.  Each throttling description consists of a regular expression that describes
                       a family of throttling bins, plus a helpful description, plus an average number of fetches per minute for each of the throttling bins that matches the regular expression.  If a given
                       throttling bin matches more than one throttling description, the most conservative fetch rate is chosen.</p>
                <p>The simplest regular expression you can use is the empty regular expression.  This will match all of the connection's throttle bins, and thus will allow you to specify a default
                       throttling policy for the connection.  Set the desired average fetch rate, and click the "Add" button.  The throttling tab will then appear something like this:</p>
                <br/><br/>
                <figure src="images/en_US/repository-throttling-with-throttle.PNG" alt="Repository Connection Throttling With Throttle" width="80%"/>
                <br/><br/>
                <p>If no throttle descriptions are added, no fetch-rate throttling will be performed.</p>
                <p>Please refer to the section of the manual describing your chosen repository connection type for a description of the tabs appropriate for that connection type.</p>

                <p>After you save your connection, a summary screen will be displayed that describes your connection's configuration.  This looks something like this (although the details will differ
                      somewhat based on what connection type you chose):</p>
                <br/><br/>
                <figure src="images/en_US/view-repository-connection.PNG" alt="View Repository Connection" width="80%"/>
                <br/><br/>
                <p>The summary screen contains a line where the connection's status is displayed.  If you did everything correctly, the message "Connection working" will be displayed as a status.
                      If there was a problem, you will see a connection-type-specific diagnostic message instead.  If this happens, you will need to correct the problem, by either fixing your infrastructure,
                      or by editing the connection configuration appropriately, before the repository connection will work correctly.</p>
                <p>Also note that there are four buttons along the bottom of the display: "Refresh", "Edit", "Delete", and "Clear all related history".  We'll
                      go into the purpose for each of these buttons in turn.</p>
                <p>The "Refresh" button simply reloads the view page for the repository connection, and updates the connection status.  Use this button when you have made changes to the external system
                      your repository connection is connected to that might affect whether the connection will succeed or not.</p>
                <p>The "Edit" button allows you to go back and edit the connection parameters.  Use this button if you want to change the connection's characteristics or specifications in any way.</p>
                <p>The "Delete" button allows you to delete the connection.  Use this button if you no longer want the connection to remain in the available list of repository connections.  Note that ManifoldCF
                      will not allow you to delete a connection that is being referenced by a job.</p>
                <p>The "Clear all related history" button will remove all history data associated with the current repository connection.  This is not a button you would use often.  History data is used to construct
                      reports, such as the "Simple History" report.  It is valuable as a diagnostic aid to understand what the crawler has been doing.  There is an automated way of configuring ManifoldCF to
                      remove history that is older than a specified interval before the current time.  But if you want to remove all the history right away, this button will do that.</p>
            </section>

            <section id="notifications">
                <title>Defining Notification Connections</title>
                <p>The Framework UI's left-side menu contains a link for listing notification connections.  A notification connection is a connection to an engine that generates notification messages, such
                      as email or text messages, specifically to note the end or unexpected termination of a job.</p>
                <p>Jobs may specify one or more notification connections.  You can create a notification connection by clicking the "List Notification Connections" link in the left-side navigation menu.  When you do this, the
                       following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-notification-connections.PNG" alt="List Notification Connections" width="80%"/>
                <br/><br/>
                <p>On a freshly created system, there may well be no existing notification connections listed.  If there are already notification connections, they will be listed on this screen, along with links that allow
                      you to view, edit, or delete them.  To create a new notification connection, click the "Add new notification connection" link at the bottom.  The following screen will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-notification-connection-name.PNG" alt="Add New Notification Connection, specify Name" width="80%"/>
                <br/><br/>
                <p>The tabs across the top each present a different view of your notification connection.  Each tab allows you to edit a different characteristic of that connection.  The exact set of tabs you see
                       depends on the connection type you choose for the connection.</p>
                <p>Start by giving your connection a name and a description.  Remember that all notification connection names must be unique, and cannot be changed after the connection is defined.  The name must be
                       no more than 32 characters long.  The description can be up to 255 characters long.  When you are done, click on the "Type" tab.  The Type tab for the connection will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-notification-connection-type.PNG" alt="Add New Notification Connection, select Type" width="80%"/>
                <br/><br/>
                <p>The list of notification connection types in the pulldown box, and what they are each called, is determined by your system integrator.  The configuration tabs for each different kind of notification connection
                       type are described in separate sections below.</p>
                <p>After you choose a notification connection type, click the "Continue" button at the bottom of the pane.  You will then see all the tabs appropriate for that kind of connection appear, and a
                       "Save" button will also appear at the bottom of the pane.  You <b>must</b> click the "Save" button when you are done in order to create your connection.  If you click "Cancel" instead, the new connection
                       will not be created.  (The same thing will happen if you click on any of the navigation links in the left-hand pane.)</p>
                <p>Every notification connection has a "Throttling" tab.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/notification-throttling.PNG" alt="Notification Connection Throttling" width="80%"/>
                <br/><br/>
                <p>On this tab, you can specify only one thing: how many open connections are allowed at any given time to the system the notification connection talks with.  This restriction helps prevent
                       that system from being overloaded, or in some cases exceeding its license limitations.  Conversely, making this number larger allows for greater overall throughput.  The default
                       value is 10, which may not be optimal for all types of notificaiton connections.  Please refer to the section of the manual describing your notification connection type for more precise
                       recommendations.
                </p>
                <p>Please refer to the section of the manual describing your chosen notification connection type for a description of the tabs appropriate for that connection type.</p>

                <p>After you save your connection, a summary screen will be displayed that describes your connection's configuration.  This looks something like this (although the details will differ
                      somewhat based on what connection type you chose):</p>
                <br/><br/>
                <figure src="images/en_US/view-notification-connection.PNG" alt="View Notification Connection" width="80%"/>
                <br/><br/>
                <p>The summary screen contains a line where the connection's status is displayed.  If you did everything correctly, the message "Connection working" will be displayed as a status.
                      If there was a problem, you will see a connection-type-specific diagnostic message instead.  If this happens, you will need to correct the problem, by either fixing your infrastructure,
                      or by editing the connection configuration appropriately, before the output connection will work correctly.</p>
                <p>Also note that there are three buttons along the bottom of the display: "Refresh", "Edit", and "Delete".  We'll
                      go into the purpose for each of these buttons in turn.</p>
                <p>The "Refresh" button simply reloads the view page for the notification connection, and updates the connection status.  Use this button when you have made changes to the external system
                      your output connection is connected to that might affect whether the connection will succeed or not.</p>
                <p>The "Edit" button allows you to go back and edit the connection parameters.  Use this button if you want to change the connection's characteristics or specifications in any way.</p>
                <p>The "Delete" button allows you to delete the connection.  Use this button if you no longer want the connection to remain in the available list of notification connections.  Note that ManifoldCF
                      will not allow you to delete a connection that is being referenced by a job.</p>
            </section>

            <section id="mappers">
                <title>Defining User Mapping Connections</title>
                <p>The Framework UI's left-side menu contains a link for listing user mapping connections.  A user mapping connection is a connection to a system
                      that understands how to map a user name into a different user name.  For example, if you want to enforce document security using LiveLink, but
                      you have only an Active Directory user name, you will need to map the Active Directory user name to a corresponding LiveLink one, before finding
                      access tokens for it using the LiveLink Authority.</p>
                <p>Not all user mapping connections need to access other systems in order to be useful.  ManifoldCF, for instance, comes with a regular expression
                      user mapper that manipulates a user name string using regular expressions alone.  Also, user mapping is not needed for many, if not most, authorities.
                      You will not need any user mapping connections if the authorities that you intend to create can all operate using the same user name, and that user
                      name is in the form that will be made available to ManifoldCF's authority servlet at search time.</p>
                <p>You should define your mapping connections <b>before</b> setting up your authority connections.  An authority connections may specify a mapping
                      connection that precedes it.  For the same reason, it's also convenient to define your mapping connections in the order that you want to process the
                      user name.  If you don't manage to do this right the first time, though, there is no reason you cannot go back and fix things up.</p>
                <p>You can create a mapping connection by clicking the "List User Mapping Connections" link in the left-side navigation menu.  When you do this, the
                       following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-mapping-connections.PNG" alt="List User Mapping Connections" width="80%"/>
                <br/><br/>
                <p>On a freshly created system, there may well be no existing mapping connections listed.  If there are already mapping connections, they will be listed on this screen, along with links
                       that allow you to view, edit, or delete them.  To create a new mapping connection, click the "Add a new connection" link at the bottom.  The following screen will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-mapping-connection-name.PNG" alt="Add New User Mapping Connection, specify Name" width="80%"/>
                <br/><br/>
                <p>The tabs across the top each present a different view of your mapping connection.  Each tab allows you to edit a different characteristic of that connection.  The exact set of tabs you see
                       depends on the connection type you choose for the connection.</p>
                <p>Start by giving your connection a name and a description.  Remember that all mapping connection names must be unique, and cannot be changed after the connection is defined.  The name must be
                       no more than 32 characters long.  The description can be up to 255 characters long.  When you are done, click on the "Type" tab.  The Type tab for the connection will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-mapping-connection-type.PNG" alt="Add New User Mapping Connection, select Type" width="80%"/>
                <br/><br/>
                <p>The list of mapping connection types in the pulldown box, and what they are each called, is determined by your system integrator.  The configuration tabs for each different kind of
                       mapping connection type included with ManifoldCF are described in separate sections below.</p>
                <p>After you choose a mapping connection type, click the "Continue" button at the bottom of the pane.  You will then see all the tabs appropriate for that kind of connection appear, and a
                       "Save" button will also appear at the bottom of the pane.  You <b>must</b> click the "Save" button when you are done in order to create your connection.  If you click "Cancel" instead,
                       the new connection will not be created.  (The same thing will happen if you click on any of the navigation links in the left-hand pane.)</p>
                <p>Every mapping connection has a "Prerequisites" tab.  This tab allows you to specify which mapping connection needs to be run before this one (if any).  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/mapping-prerequisites.PNG" alt="User Mapping Connection Prerequisites" width="80%"/>
                <br/><br/>
                <p>Note: It is very important that you do not specify prerequisites in such a way as to create a loop.  To make this easier, ManifoldCF will not display any user mapping connections in the pulldown
                       which, if selected, would lead to a loop.</p>
                <p>Every mapping connection has a "Throttling" tab.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/mapping-throttling.PNG" alt="User Mapping Connection Throttling" width="80%"/>
                <br/><br/>
                <p>On this tab, you can specify only one thing: how many open connections are allowed at any given time to the system the mapping connection talks with.  This restriction helps prevent
                       that system from being overloaded, or in some cases exceeding its license limitations.  Conversely, making this number larger allows for smaller average search latency.  The default
                       value is 10, which may not be optimal for all types of mapping connections.  Please refer to the section of the manual describing your mapping connection type for more precise
                       recommendations.
                </p>
                <p>Please refer to the section of the manual describing your chosen mapping connection type for a description of the tabs appropriate for that connection type.</p>

                <p>After you save your connection, a summary screen will be displayed that describes your connection's configuration.  This looks something like this (although the details will differ
                      somewhat based on what connection type you chose):</p>
                <br/><br/>
                <figure src="images/en_US/view-mapping-connection.PNG" alt="View Mapping Connection" width="80%"/>
                <br/><br/>
                <p>The summary screen contains a line where the connection's status is displayed.  If you did everything correctly, the message "Connection working" will be displayed as a status.
                      If there was a problem, you will see a connection-type-specific diagnostic message instead.  If this happens, you will need to correct the problem, by either fixing your infrastructure,
                      or by editing the connection configuration appropriately, before the mapping connection will work correctly.</p>
                <p>Also note that there are three buttons along the bottom of the display: "Refresh", "Edit", and "Delete".  We'll
                      go into the purpose for each of these buttons in turn.</p>
                <p>The "Refresh" button simply reloads the view page for the mapping connection, and updates the connection status.  Use this button when you have made changes to the external system
                      your mapping connection is connected to that might affect whether the connection will succeed or not.</p>
                <p>The "Edit" button allows you to go back and edit the connection parameters.  Use this button if you want to change the connection's characteristics or specifications in any way.</p>
                <p>The "Delete" button allows you to delete the connection.  Use this button if you no longer want the connection to remain in the available list of mapping connections.  Note that ManifoldCF
                      will not allow you to delete a connection that is being referenced by another mapping connection or an authority connection.</p>
            </section>

            <section id="authorities">
                <title>Defining Authority Connections</title>
                <p>The Framework UI's left-side menu contains a link for listing authority connections.  An authority connection is a connection to a system that defines a
                      particular security environment.  For example, if you want to index some documents that are protected by Active Directory, you would need to configure
                      an Active Directory authority connection.</p>
                <p>Bear in mind that only specific authority connection types are compatible with a given repository connection type.  Read the details of your desired
                      repository type in this document in order to understand how it is designed to be used.  You may not need an authority if you do not mind that portions
                      of all the documents you want to index are visible to everyone.  For web, RSS, and Wiki crawling, this might be the situation.  Most other repositories
                      have some native security mechanism, however.</p>
                <p>You can create an authority connection by clicking the "List Authority Connections" link in the left-side navigation menu.  When you do this, the
                       following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-authority-connections.PNG" alt="List Authority Connections" width="80%"/>
                <br/><br/>
                <p>On a freshly created system, there may well be no existing authority connections listed.  If there are already authority connections, they will be listed on this screen, along with links
                       that allow you to view, edit, or delete them.  To create a new authority connection, click the "Add a new connection" link at the bottom.  The following screen will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-authority-connection-name.PNG" alt="Add New Authority Connection, specify Name" width="80%"/>
                <br/><br/>
                <p>The tabs across the top each present a different view of your authority connection.  Each tab allows you to edit a different characteristic of that connection.  The exact set of tabs you see
                       depends on the connection type you choose for the connection.</p>
                <p>Start by giving your connection a name and a description.  Remember that all authority connection names must be unique, and cannot be changed after the connection is defined.  The name must be
                       no more than 32 characters long.  The description can be up to 255 characters long.  When you are done, click on the "Type" tab.  The Type tab for the connection will then appear:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-authority-connection-type.PNG" alt="Add New Authority Connection, select Type" width="80%"/>
                <br/><br/>
                <p>The list of authority connection types in the pulldown box, and what they are each called, is determined by your system integrator.  The configuration tabs for
                      each different kind of authority connection type are described in this document in separate sections below.</p>
                <p>On this tab, you must also select the authority group that the authority connection you are creating belongs to.  Select the appropriate authority group from the
                      pulldown.</p>
                <p>You also have the option of selecting a non-default authorization domain.  An authorization domain describes which of possibly several user identities the
                      authority connection is associated with.  For example, a single user may have an Active Directory identity, a LiveLink identity, and a FaceBook identity.
                      Your authority connection will be appropriate to only one of those identities.  The list of specific authorization domains available is determined by your system
                      integrator.</p>
                <p>After you choose an authority connection type, the authority group, and optionally the authorization domain, click the "Continue" button at the bottom of the pane.
                      You will then see all the tabs appropriate for that kind of connection appear, and a "Save" button will also appear at the bottom of the pane.  You <b>must</b>
                      click the "Save" button when you are done in order to create your connection.  If you click "Cancel" instead, the new connection
                      will not be created.  (The same thing will happen if you click on any of the navigation links in the left-hand pane.)</p>
                <p>Every authority connection has a "Prerequisites" tab.  This tab allows you to specify which mapping connection needs to be run before this one (if any).  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/authority-prerequisites.PNG" alt="Authority Connection Prerequisites" width="80%"/>
                <br/><br/>
                <p>Every authority connection also has a "Throttling" tab.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/authority-throttling.PNG" alt="Authority Connection Throttling" width="80%"/>
                <br/><br/>
                <p>On this tab, you can specify only one thing: how many open connections are allowed at any given time to the system the authority connection talks with.  This restriction helps prevent
                       that system from being overloaded, or in some cases exceeding its license limitations.  Conversely, making this number larger allows for smaller average search latency.  The default
                       value is 10, which may not be optimal for all types of authority connections.  Please refer to the section of the manual describing your authority connection type for more precise
                       recommendations.
                </p>
                <p>Please refer to the section of the manual describing your chosen authority connection type for a description of the tabs appropriate for that connection type.</p>

                <p>After you save your connection, a summary screen will be displayed that describes your connection's configuration.  This looks something like this (although the details will differ
                      somewhat based on what connection type you chose):</p>
                <br/><br/>
                <figure src="images/en_US/view-authority-connection.PNG" alt="View Authority Connection" width="80%"/>
                <br/><br/>
                <p>The summary screen contains a line where the connection's status is displayed.  If you did everything correctly, the message "Connection working" will be displayed as a status.
                      If there was a problem, you will see a connection-type-specific diagnostic message instead.  If this happens, you will need to correct the problem, by either fixing your infrastructure,
                      or by editing the connection configuration appropriately, before the authority connection will work correctly.</p>
                <p>Also note that there are three buttons along the bottom of the display: "Refresh", "Edit", and "Delete".  We'll
                      go into the purpose for each of these buttons in turn.</p>
                <p>The "Refresh" button simply reloads the view page for the authority connection, and updates the connection status.  Use this button when you have made changes to the external system
                      your authority connection is connected to that might affect whether the connection will succeed or not.</p>
                <p>The "Edit" button allows you to go back and edit the connection parameters.  Use this button if you want to change the connection's characteristics or specifications in any way.</p>
                <p>The "Delete" button allows you to delete the connection.  Use this button if you no longer want the connection to remain in the available list of authority connections.</p>
            </section>

            <section id="jobs">
                <title>Creating Jobs</title>
                <p>A "job" in ManifoldCF is a description of a set of documents.  The Framework's job is to fetch this set of documents come from a specific repository connection,
                       transform them using zero or more transformation connections, and
                       send them to a specific output connection.  The repository connection that is associated with the job will determine exactly how this set of documents is described,
                       and to some degree how they are indexed.  The output connection associated with the job can also affect how each document is indexed, as will any transformation
                       connections that are specified.</p>
                <p>Every job is expected to be run more than once.  Each time a job is run, it is responsible not only for sending new or changed documents to the output connection,
                       but also for notifying the output connection of any documents that are no longer part of the set.  Note that there are two ways for a document to no longer be part
                       of the included set of documents: Either the document may have been deleted from the repository, or the document may no longer be included in the allowed set
                       of documents.  The Framework handles each case properly.</p>
                <p>Deleting a job causes the output connection to be notified of deletion for all documents belonging to that job.  This makes sense because the job represents the set
                       of documents, which would otherwise be orphaned when the job was removed.  (Some users make the assumption that a ManifoldCF job represents nothing more
                       than a task, which is an incorrect assumption.)</p>
                <p>Note that the Framework allows jobs that describe overlapping sets of documents to be defined.  Documents that exist in more than one job are treated in the
                       following special ways:</p>
                <ul>
                    <li>When a job is deleted, the output connections are notified of deletion of documents belonging to that job only if they don't belong to another job</li>
                    <li>The version of the document sent to an output connection depends on which job was run last</li>
                </ul>
                <p>The subtle logic of overlapping documents means that you probably want to avoid this situation entirely, if it is at all feasible.</p>
                <p>A typical non-continuous run of a job has the following stages of execution:</p>
                <ol>
                    <li>Adding the job's new, changed, or deleted starting points to the queue ("seeding")</li>
                    <li>Fetching documents, discovering new documents, and detecting deletions</li>
                    <li>Removing no-longer-included documents from the queue</li>
                </ol>
                <p>Jobs can also be run "continuously", which means that the job never completes, unless it is aborted.  A continuous run has different stages of execution:</p>
                <ol>
                    <li>Adding the job's new, changed, or deleted starting points to the queue ("seeding")</li>
                    <li>Fetching documents, discovering new documents, and detecting deletions, while reseeding periodically</li>
                </ol>
                <p>Note that continuous jobs <b>cannot</b> remove no-longer-included documents from the queue.  They can only remove documents that have been deleted from
                     the repository.</p>
                <p>A job can independently be configured to start when explicitly started by a user, or to run on a user-specified schedule.  If a job is set up to run on a schedule, it
                       can be made to start only at the beginning of a schedule window, or to start again within any remaining schedule window when the previous job run completes.</p>
                <p>There is no restriction in ManifoldCF as to how many jobs many running at any given time.</p>
                <p>You create a job by first clicking on the "List All Jobs" link on the left-side menu.  The following screen will appear:</p>
                <br/><br/>
                <figure src="images/en_US/list-jobs.PNG" alt="List Jobs" width="80%"/>
                <br/><br/>
                <p>You may view, edit, or delete any existing jobs by clicking on the appropriate link.  You may also create a new job that is a copy of an existing job.  But to create
                       a brand-new job, click the "Add a new job" link at the bottom.  You will then see the following page:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-job-name.PNG" alt="Add New Job, name tab" width="80%"/>
                <br/><br/>
                <p>Give your job a name.  Note that job names do <b>not</b> have to be unique, although it is probably less confusing to have a different name for each one.  Then,
                       click the "Connection" tab:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-job-connection.PNG" alt="Add New Job, connection tab" width="80%"/>
                <br/><br/>
                <p>Now, you should select the repository connection name.  Bear in mind that whatever you select cannot be changed after the
                       job is saved the first time.</p>
                <p>Add an output, or more than one, by selecting the output in the pulldown, selecting the prerequisite pipeline stage, and clicking the "Add output" button.
                      Note that once the job is saved the first time, you cannot delete an output.  But you can rearrange your document processing pipeline in most other ways whenever
                      you want to, including adding or removing transformation connections.</p>
                <p>If you do not have any transformation connections defined, you will not be given the option of inserting a transformation connection into the pipeline.  But if
                       you have transformation connections defined, and you want to include them in the document pipeline, you can select them from the transformation connection
                       pulldown, type a description into the description box, and then click one of the "Insert before" buttons to insert it into the document pipeline.</p>
                <p>If you do not have any notification connections defined, you will not be given the option of adding one or more notifications to the end of the job.  But if
                       you have notification connections defined, and you want to include them, you can select them from the notification connection
                       pulldown, type a description into the description box, and then click the appropriate "Add" button to add it into the notification list.</p>
                <p>You also have the opportunity to modify the job's priority and start method at this time.  The priority
                       controls how important this job's documents are, relative to documents from any other job.  The higher the number, the more important it is considered for that job's
                       documents to be fetched first.  The start method is as previously described; you get a choice of manual start, starting on the beginning of a scheduling window, or
                       starting whenever possible within a scheduling window.</p>
                <p>Make your selections, and click "Continue".  The rest of the job's tabs will now appear, and a
                       "Save" button will also appear at the bottom of the pane.  You <b>must</b> click the "Save" button when you are done in order to create or update your job.  If
                       you click "Cancel" instead, the new job will not be created.  (The same thing will happen if you click on any of the navigation links in the left-hand pane.)</p>
                <p>All jobs have a "Scheduling" tab.  The scheduling tab allows you to set up schedule-related configuration information:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-job-scheduling.PNG" alt="Add New Job, scheduling tab" width="80%"/>
                <br/><br/>
                <p>On this tab, you can specify the following parameters:</p>
                <ul>
                    <li>Whether the job runs continuously, or scans every document once</li>
                    <li>How long a document should remain alive before it is 'expired', and removed from the index</li>
                    <li>The minimum interval before a document is re-checked, to see if it has changed</li>
                    <li>The maximum interval before a document is re-checked, to see if it has changed</li>
                    <li>How long to wait before reseeding initial documents</li>
                </ul>
                <br/>
                <p>The last four parameters only make sense if a job is a continuously running one, as the UI indicates.</p>
                <p>The other thing you can do on this time is to define an appropriate set of scheduling records.  Each scheduling record defines some related set of intervals during
                       which the job can run.  The intervals are determined by the starting time (which is defined by the day of week, month, day, hour, and minute pulldowns), and the
                       maximum run time in minutes, which determines when the interval ends.  It is, of course, possible to select multiple values for each of the pulldowns, in which case
                       you be describing a starting time that had to match at least <b>one</b> of the selected values for <b>each</b> of the specified fields.</p>
                <p>Once you have selected the schedule values you want, click the "Add Scheduled Time" button:</p>
                <br/><br/>
                <figure src="images/en_US/add-new-job-scheduling-with-record.PNG" alt="Add New Job, scheduling tab with record" width="80%"/>
                <br/><br/>
                <p>The example shows a schedule where crawls are run on Saturday and Sunday nights at 2 AM, and run for no more than 4 hours.</p>
                <p>The rest of the job tabs depend on the types of the connections you selected.  Please refer to the section of the manual
                       describing the appropriate connection types corresponding to your chosen repository and output connections for a description of the job tabs that will appear for
                       those connections.</p>

                <p>After you save your job, a summary screen will be displayed that describes your job's specification.  This looks something like this (although the details will differ
                      somewhat based on what connections you chose):</p>
                <br/><br/>
                <figure src="images/en_US/view-job.PNG" alt="View Job" width="80%"/>
                <br/><br/>
                <p>Also note that there are four buttons along the bottom of the display: "Edit", "Delete", "Copy", and "Reset seeding".  We'll
                      go into the purpose for each of these buttons in turn.</p>
                <p>The "Edit" button allows you to go back and edit the job specification.  Use this button if you want to change the job's details in any way.</p>
                <p>The "Delete" button allows you to delete the job.  Use this button if you no longer want the job to exist.  Note that when you delete a job in ManifoldCF, all
                      documents that were indexed using that job are removed from the index.</p>
                <p>The "Copy" button allows you to edit a copy of the current job.  Use this button if you want to create a new job that is based largely on the current job's specification.
                      This can be helpful if you have many similar jobs to create.</p>
                <p>The "Reset seeding" button will cause ManifoldCF to forget the seeding history of the job.  Seeding is the process of discovering documents that have been added
                      or modified.  Clicking this button insures that ManifoldCF will examine all documents in the repository on the next crawl.  This is not something that is done frequently;
                      ManifoldCF is pretty good at managing this information itself, and will automatically do the same thing whenever a job specification is changed.  Use this option if
                      you've updated your connector software in a way that requires all documents to be re-examined.</p>
            </section>

            <section id="executing">
                <title>Executing Jobs</title>
                <p>You can follow what is going on, and control the execution of your jobs, by clicking on the "Status and Job Management" link on the left-side navigation menu.  When you do, you might
                       see something like this:</p>
                <br/><br/>
                <figure src="images/en_US/job-status.PNG" alt="Job Status" width="80%"/>
                <br/><br/>
                <p>From here, you can click the "Refresh" link at the bottom of the main pane to see an updated status display, or you can directly control the job using the links in the leftmost
                       status column.  Allowed actions you may see at one point or another include:</p>
                <ul>
                    <li>Start (start the job)</li>
                    <li>Start minimal (start the job, but do only the minimal work possible)</li>
                    <li>Abort(abort the job)</li>
                    <li>Pause (pause the job)</li>
                    <li>Resume (resume the job)</li>
                    <li>Restart (equivalent to aborting the job, and starting it all over again)</li>
                    <li>Restart minimal (equivalent to aborting the job, and starting it all over again, doing only the minimal work possible)</li>
                </ul>
                <br/>
                <p>The columns "Documents", "Active", and "Processed" have very specific means as far as documents in the job's queue are concerned.  The "Documents" column counts all the documents
                       that belong to the job.  The "Active" column counts all of the documents for that job that are queued up for processing.  The "Processed" column counts all documents that are on the
                       queue for the job that have been processed at least once in the past.</p>
                <p>Using the "minimal" variant of the listed actions will perform the minimum possible amount of work, given the model that the connection type for the job uses.  In some
                       cases, this will mean that additions and modifications are indexed, but deletions are not detected.  A complete job run is usually necessary to fully synchronize the target
                       index with the repository contents.</p>
            </section>
            <section id="statusreports">
                <title>Status Reports</title>
                <p>Every job in ManifoldCF describes a set of documents.  A reference to each document in the set is kept in a job-specific queue.  It is sometimes valuable for
                       diagnostic reasons to examine this queue for information.  The Framework UI has several canned reports which do just that.</p>
                <p>Each status report allows you to select what documents you are interested in from a job's queue based on the following information:</p>
                <ul>
                    <li>The job</li>
                    <li>The document identifier</li>
                    <li>The document's status and state</li>
                    <li>When the document is scheduled to be processed next</li>
                </ul>
                <section id="documentstatus">
                    <title>Document Status</title>
                    <p>A document status report simply lists all matching documents from within the queue, along with their state, status, and planned future activity.  You might use this report if you were
                           trying to figure out (for example) whether a specific document had been processed yet during a job run.</p>
                    <p>Click on the "Document Status" link on the left-hand menu.  You will see a screen that looks something like this:</p>
                    <br/><br/>
                    <figure src="images/en_US/document-status-select-connection.PNG" alt="Document Status, select connection" width="80%"/>
                    <br/><br/>
                    <p>Select the desired connection.  You may also select the desired document state and status, as well as specify a regular expression for the document identifier, if you want.  Then,
                           click the "Continue" button:</p>
                    <br/><br/>
                    <figure src="images/en_US/document-status-select-job.PNG" alt="Document Status, select job" width="80%"/>
                    <br/><br/>
                    <p>Select the job whose documents you want to see, and click "Continue" once again.  The results will display:</p>
                    <br/><br/>
                    <figure src="images/en_US/document-status-example.PNG" alt="Document Status, example" width="80%"/>
                    <br/><br/>
                    <p>You may alter the criteria, and click "Go" again, if you so choose.  Or, you can alter the number of result rows displayed at a time, and click "Go" to redisplay.  Finally, you can page
                           up and down through the results using the "Prev" and "Next" links.</p>
                </section>
                <section id="queuestatus">
                    <title>Queue Status</title>
                    <p>A queue status report is an aggregate report that counts the number of occurrences of documents in specified classes.  The classes are specified as a grouping within a regular
                           expression, which is matched against all specified document identifiers.  The results that are displayed are counts of documents.  There will be a column for each combination of
                           document state and status.</p>
                    <p>For example, a class specification of "()" will produce exactly one result row, and will provide a count of documents that are in each state/status combination.  A class description
                           of "(.*)", on the other hand, will create one row for each document identifier, and will put a "1" in the column representing state and status of that document, with a "0" in all other
                           column positions.</p>
                    <p>Click the "Queue Status" link on the left-hand menu.  You will see a screen that looks like this:</p>
                    <br/><br/>
                    <figure src="images/en_US/queue-status-select-connection.PNG" alt="Queue Status, select connection" width="80%"/>
                    <br/><br/>
                    <p>Select the desired connection.  You may also select the desired document state and status, as well as specify a regular expression for the document identifier, if you want.  You
                           will probably want to change the document identifier class from its default value of "(.*)".  Then, click the "Continue" button:</p>
                    <br/><br/>
                    <figure src="images/en_US/queue-status-select-job.PNG" alt="Queue Status, select job" width="80%"/>
                    <br/><br/>
                    <p>Select the job whose documents you want to see, and click "Continue" once again.  The results will display:</p>
                    <br/><br/>
                    <figure src="images/en_US/queue-status-example.PNG" alt="Queue Status, example" width="80%"/>
                    <br/><br/>
                    <p>You may alter the criteria, and click "Go" again, if you so choose.  Or, you can alter the number of result rows displayed at a time, and click "Go" to redisplay.  Finally, you can page
                           up and down through the results using the "Prev" and "Next" links.</p>

                </section>
            </section>
            <section id="historyreports">
                <title>History Reports</title>
                <p>For every repository connection, ManifoldCF keeps a history of what has taken place involving that connection.  This history includes both events that the
                       framework itself logs, as well as events that a repository connection or output connection will log.  These individual events are categorized by "activity type".  Some of the kinds of
                       activity types that exist are:</p>
                <ul>
                    <li>Job start</li>
                    <li>Job end</li>
                    <li>Job abort</li>
                    <li>Various connection-type-specific read or access operations</li>
                    <li>Various connection-type-specific output or indexing operations</li>
                </ul>
                <p>This history can be enormously helpful in understand how your system is behaving, and whether or not it is working properly.  For this reason, the Framework UI has the ability to
                       generate several canned reports which query this history data and display the results.</p>
                <p>All history reports allow you to specify what history records you are interested in including.  These records are selected using the following criteria:</p>
                <ul>
                    <li>The repository connection name</li>
                    <li>The activity type(s) desired</li>
                    <li>The start time desired</li>
                    <li>The end time desired</li>
                    <li>The identifier(s) involved, specified as a regular expression</li>
                    <li>The result(s) produced, specified as a regular expression</li>
                </ul>
                <p>The actual reports available are designed to be useful for diagnosing both access issues, and performance issues.  See below for a summary of the types available.</p>
                <section id="simplehistory">
                    <title>Simple History Reports</title>
                    <p>As the name suggests, a simple history report does not attempt to aggregate any data, but instead just lists matching records from the repository connection's history.
                           These records are initially presented in most-recent-first order, and include columns for the start and end time of the event, the kind of activity represented by the event,
                           the identifier involved, the number of bytes involved, and the results of the event.  Once displayed, you may choose to display more or less data, or reorder the display by column, or page through the data.</p>
                    <p>To get started, click on the "Simple History" link on the left-hand menu.  You will see a screen that looks like this:</p>
                    <br/><br/>
                    <figure src="images/en_US/simple-history-select-connection.PNG" alt="Simple History Report, select connection" width="80%"/>
                    <br/><br/>
                    <p>Now, select the desired repository connection from the pulldown in the upper left hand corner.  If you like, you can also change the specified date/time range, or specify an identifier
                           regular expression or result code regular expression.  By default, the date/time range selects all events within the last hour, while the identifier regular expression and result code
                           regular expression matches all identifiers and result codes.</p>
                    <p>Next, click the "Continue" button.  A list of pertinent activities should then appear in a pulldown in the upper right:</p>
                    <br/><br/>
                    <figure src="images/en_US/simple-history-select-activities.PNG" alt="Simple History Report, select activities" width="80%"/>
                    <br/><br/>
                    <p>You may select one or more activities that you would like a report on.  When you are done, click the "Go" button.  The results will appear, ordered by time, most recent event first:</p>
                    <br/><br/>
                    <figure src="images/en_US/simple-history-example.PNG" alt="Simple History Report, example" width="80%"/>
                    <br/><br/>
                    <p>You may alter the criteria, and click "Go" again, if you so choose.  Or, you can alter the number of result rows displayed at a time, and click "Go" to redisplay.  Finally, you can page
                           up and down through the results using the "Prev" and "Next" links.</p>
                    <p>Please bear in mind that the report redisplays whatever matches each time you click "Go".  So, if your time interval goes from an hour beforehand to "now", and you have activity
                           happening, you will see different results each time "Go" is clicked.</p>
                </section>
                <section id="maxactivity">
                    <title>Maximum Activity Reports</title>
                    <p>A maximum activity report is an aggregate report used primarily to display the maximum rate that events occur within a specified time interval.  MHL</p>
                </section>
                <section id="maxbandwidth">
                    <title>Maximum Bandwidth Reports</title>
                    <p>A maximum bandwidth report is an aggregate report used primarily to display the maximum byte rate that pertains to events occurring within a specified time interval.  MHL</p>
                </section>
                <section id="resulthistogram">
                    <title>Result Histogram Reports</title>
                    <p>A result histogram report is an aggregate report is used to count the occurrences of each kind of matching result for all matching events.  MHL</p>
                </section>
            </section>

            <section id="credentials">
                <title>A Note About Credentials</title>
                <p>If any of your selected connection types require credentials, you may find it necessary to approach your system administrator to obtain an appropriate set.  System administrators
                       are often reluctant to provide accounts and credentials that have any more power than is utterly necessary, and sometimes not even that.  Great care has been taken in the
                       development of all connection types to be sure they require no more privilege than is utterly necessary.  If a security-related warning appears when you view a connection's
                       status, you must inform the system administrator that the credentials are inadequate to allow the connection to accomplish its task, and work with him/her to correct the problem.
                </p>
            </section>

        </section>

        <section id="outputconnectiontypes">
            <title>Output Connection Types</title>

            <section id="amazoncloudsearchoutputconnector">
                <title>Amazon Cloud Search Output Connection</title>
                <p>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.</p>
                <p>The connection configuration information for the Amazon Cloud Search Output Connection type includes one additional tab: the "Server" tab.
                      This tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/amazon-configure-server.PNG" alt="Amazon Output Configuration, Server tab" width="80%"/>
                <br/><br/>
                <p>You must supply the "Server host" field in order for the connection to work.</p>
                <p>The Amazon Cloud Search Output Connection type does not contribute any tabs to a job definition.</p>
                <p>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.</p>
                <p></p>
                <p>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
                      <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html">this document</a> for details of how to set up an Amazon Cloud Search
                      schema.</p>
            </section>
            
            <section id="cmisoutput">
              <title>CMIS Output Connection</title>
              <p>The CMIS Output Connection type allows you to migrate content to any CMIS-compliant repository.</p>
              <p>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.</p>
              <p>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.</p>
              <br/>
              <p>A CMIS Output connection has the following configuration parameters on the output connection editing screen:</p>
              <br/><br/>
              <figure src="images/en_US/cmis-output-connection-configuration.png" alt="CMIS Output Connection, configuration parameters" width="80%"/>
              <br/><br/>
              <p>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.</p>
              <p>The endpoint consists of the HTTP protocol, hostname, port and the context path of the CMIS service exposed by the CMIS server:</p>
              <br/>
              <p><code>http://HOSTNAME:PORT/CMIS_CONTEXT_PATH</code></p>
              <br/><br/>
              <p>The CMIS Query must be provided to select your own drop zone in the target folder that should be an existent CMIS folder.</p>
              <p>By default the crawler will replicate the same source path structure for each content in that target folder.</p>
              <p>Considering to have your contents in your source repository inside the following path:</p>
              <br/>
              <p><code>/MySourceRepo/Invoices</code></p>
              <br/>
              <p>And supposing to have configured your CMIS Output Connection with the default value of the CMIS Query for your target folder:</p>
              <br/>
              <p><code>SELECT * FROM cmis:folder WHERE cmis:name='Apache ManifoldCF'</code></p>
              <br /><br/>
              <p>All the migrated contents will be dropped in the following target CMIS folder:</p>
              <br/>
              <p><code>/path/to/your/Apache ManifoldCF/MySourceRepo/Invoices</code></p>
              <br/>
              <p>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.</p>
              <br/>
              <p>Note that, in a CMIS system, a specific binding protocol has its own context path, this means that the endpoints are different:</p>
              <p>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:</p>
              <p><code>http://localhost:8080/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT/atom</code></p>
              <br/><br/>
              <p>The Web Services binding is exposed using a different endpoint:</p>
              <p><code>http://localhost:8080/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT/services/RepositoryService</code></p>
              <br /><br/>
            </section>

            <section id="elasticsearchoutputconnector">
                <title>ElasticSearch Output Connection</title>
                <p>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.</p>
                <p>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.</p>
                <figure src="images/en_US/elasticsearch-connection-parameters.png" alt="ElasticSearch, parameters tab" width="80%"/>
                <br />
                <p>The parameters are:</p>
                <ul>
                      <li>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.</li>
                      <li>Index name: The connector will populate the index defined here.</li>
                </ul>
                <br /><p>Once you created a new job, having selected the ElasticSearch output connector, you will have the ElasticSearch tab. This tab let you:</p>
                <ul>
                      <li>Fix the maximum size of a document before deciding to index it. The value is in bytes. The default value is 16MB.</li>
                      <li>The allowed mime types. Warning it does not work with all repository connectors.</li>
                      <li>The allowed file extensions. Warning it does not work with all repository connectors.</li>
                </ul>
                <figure src="images/en_US/elasticsearch-job-parameters.png" alt="ElasticSearch, job parameters" width="80%"/>
                <p>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.</p>
                <figure src="images/en_US/elasticsearch-history-report.png" alt="ElasticSearch, history report" width="80%"/>
                <p>You may also refer to <a href="http://www.elasticsearch.org/guide">ElasticSearch's user documentation</a>.  Especially important is the
                       need to configure the ElasticSearch index mapping <em>before</em> you try to index anything.  <strong>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.</strong>  Specifically, you will want a mapping that enables the attachment plug-in, for example something like this:</p>
                <source>
{
  "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" }
        }
      }
    }
  }
}
                </source>
                <p>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 <em>curl</em> tool, which you can download from <a href="http://curl.haxx.se">http://curl.haxx.se</a>.  For example, to inspect the mapping
                       for a version of ElasticSearch running locally on port 9200:</p>
                <source>
curl -XGET http://localhost:9200/index/_mapping
                </source>
            </section>

            <section id="filesystemoutputconnector">
                <title>File System Output Connection</title>
                <p>The File System output connection type allows ManifoldCF to store documents in a local filesystem, using the conventions established by the
                    Unix utility called <em>wget</em>.  Documents stored by this connection type will not include any metadata or security information, but instead
                    consist solely of a binary file.</p>
                <p>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:</p>
                <br/><br/>
                <figure src="images/en_US/filesystem-job-output-path.PNG" alt="File System Specification, Output Path tab" width="80%"/>
                <br/><br/>
                <p>Fill in the path you want the connection type to use to write the documents to.  Then, click the "Save" button.</p>
            </section>

            <section id="hdfsoutputconnector">
                <title>HDFS Output Connection</title>
                <p>The HDFS output connection type allows ManifoldCF to store documents in HDFS, using the conventions established by the
                    Unix utility called <em>wget</em>.  Documents stored by this connection type will not include any metadata or security information, but instead
                    consist solely of a binary file.</p>
                <p>The connection configuration information for the HDFS output connection type includes one additional tab: the "Server" tab.  This tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/hdfs-configure-server.PNG" alt="HDFS Output Configuration, Server tab" width="80%"/>
                <br/><br/>
                <p>Fill in the name node URI and the user name.  Both are required.</p>
                <p>For the HDFS output connection type, there is an additional job tab called "Output Path".  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/hdfs-job-output-path.PNG" alt="HDFS Output Specification, Output Path tab" width="80%"/>
                <br/><br/>
                <p>Fill in the path you want the connection type to use to write the documents to.  Then, click the "Save" button.</p>
            </section>


            <section id="gtsoutputconnector">
                <title>MetaCarta GTS Output Connection</title>
                <p>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.</p>
                <p>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.</p>
                <p>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.</p>
                <p>More here later</p>
            </section>

            <section id="nulloutputconnector">
                <title>Null Output Connection</title>
                <p>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.</p>
                <p>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.</p>
            </section>

            <section id="opensearchserveroutputconnector">
                <title>OpenSearchServer Output Connection</title>
                <p>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.</p>
                <p>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.</p>
                <figure src="images/en_US/opensearchserver-connection-parameters.PNG" alt="OpenSearchServer, parameters tab" width="80%"/>
                <p>The parameters are:</p><br/>
                <ul>
                      <li>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.</li>
                      <li>Index name: The connector will populate the index defined here.</li>
                      <li>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.</li>
                </ul>
                <figure src="images/en_US/opensearchserver-user.PNG" alt="OpenSearchServer, user configuration" width="80%"/>
                <p>Once you created a new job, having selected the OpenSearchServer output connector, you will have the OpenSearchServer tab. This tab let you:</p><br/>
                <ul>
                      <li>Fix the maximum size of a document before deciding to index it. The value is in bytes. The default value is 16MB.</li>
                      <li>The allowed mime types. Warning it does not work with all repository connectors.</li>
                      <li>The allowed file extensions. Warning it does not work with all repository connectors.</li>
                </ul>
                <figure src="images/en_US/opensearchserver-job-parameters.PNG" alt="OpenSearchServer, job parameters" width="80%"/>
                <p>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.</p>
                <figure src="images/en_US/opensearchserver-history-report.PNG" alt="OpenSearchServer, history report" width="80%"/>
                <p>You may also refer to the <a href="http://www.open-search-server.com/documentation">OpenSearchServer's user documentation</a>.</p>
            </section>

            <section id="solroutputconnector">
                <title>Solr Output Connection</title>
                <p>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.</p>
                <p>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:</p>
                <br/><br/>
                <figure src="images/en_US/solr-configure-solr-type.PNG" alt="Solr Configuration, Solr type tab" width="80%"/>
                <br/><br/>
                <p>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).</p>
                <p>The "Server" tab allows you to configure the HTTP parameters appropriate for communicating with a standalone Solr instance:</p>
                <br/><br/>
                <figure src="images/en_US/solr-configure-server.PNG" alt="Solr Configuration, Server tab" width="80%"/>
                <br/><br/>
                <p>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.</p>
                <p>The "Zookeeper" tab allows your to configure the connection type to communicate with a Solr Cloud cluster:</p>
                <br/><br/>
                <figure src="images/en_US/solr-configure-zookeeper.PNG" alt="Solr Configuration, Zookeeper tab" width="80%"/>
                <br/><br/>
                <p>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.</p>
                <p>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:</p>
                <br/><br/>
                <figure src="images/en_US/solr-configure-schema.PNG" alt="Solr Configuration, Schema tab" width="80%"/>
                <br/><br/>
                <p>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.</p>
                <p>The next tab is the "Arguments" tab, which allows you to specify arbitrary arguments to be sent to Solr:</p>
                <br/><br/>
                <figure src="images/en_US/solr-configure-arguments.PNG" alt="Solr Configuration, Arguments tab" width="80%"/>
                <br/><br/>
                <p>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.</p>
                <p>Use this tab to specify any and all desired Solr update request parameters.  You can, for instance, add
                       <a href="http://wiki.apache.org/solr/UpdateRequestProcessor">update.chain=myChain</a> to select a specific document processing pipeline/chain to
                       use for processing documents. See the Solr documentation for more valid arguments.</p>
                <p>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:</p>
                <figure src="images/en_US/solr-configure-documents.PNG" alt="Solr Configuration, Documents tab" width="80%"/>
                <br/><br/>
                <p>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 <a href="http://wiki.apache.org/solr/CommitWithin">commit within</a> strategy will leave the responsibility to Solr instead
                       of ManifoldCF. The tab looks like:</p>
                <figure src="images/en_US/solr-configure-commits.PNG" alt="Solr Configuration, Documents tab" width="80%"/>
                <br/><br/>
                <p>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:</p>
                <br/><br/>
                <figure src="images/en_US/solr-status.PNG" alt="Solr Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the Solr connection is not responding, which is leading to an error status message instead of "Connection working".</p>
            </section>


        </section>

        <section id="transformationconnectiontypes">
            <title>Transformation Connection Types</title>

            <section id="alloweddocuments">
                <title>Allowed Documents</title>
                <p>The Allowed Documents transformation filter is used to limit the documents that will be fetched and passed down the pipeline for indexing.  The
                      filter allows documents to be restricted by mime type, by extension, and by length.</p>
                <p>It is important to note that these various methods of filtering rely on the upstream repository connection type to implement.  Some repository connection
                      types do not implement all of the available methods of filtering.  For example, filtering by URL (and hence file extension) makes little sense in the
                      context of a repository connection type whose URLs do not include a full file name.</p>
                <p>As with all document transformers,  more than one Allowed Documents transformation filter can be used in a single pipeline.  This may be useful
                      if other document transformers (such as the Tika Content Extractor, below) change the characteristics of the document being processed.</p>
                <p>The Allowed Documents transformation connection type does not require anything other than standard configuration information.</p>
                <p>The Allowed Documents transformation connection type contributes a single tab to a job definition.  This is the "Allowed Contents" tab, which looks
                      like this:</p>
                <br/><br/>
                <figure src="images/en_US/alloweddocuments-job-allowed-contents.PNG" alt="Allowed Documents specification, Allowed Contents tab" width="80%"/>
                <br/><br/>
                <p>Fill in the maximum desired document length, the set of extensions that are allowed, and the set of mime types that are allowed.  All extensions and
                      mime types are case insensitive.  For extensions, the special value "." matches a missing or empty extension.</p>
            </section>

            <section id="metadataadjuster">
                <title>Metadata Adjuster</title>
                <p>The Metadata Adjuster transformation filter reorganizes and concatenates metadata based on rules that you provide.
                      This can be very helpful in many contexts.  For example, you might use the Metadata Adjuster to label all documents from a particular job with a
                      particular tag in an index.  Or, you might need to map metadata from (say) SharePoint's schema to your final output connection type's schema.
                      The Metadata Adjuster permits you to handle both of the scenarios.</p>
                <p>As with all document transformers,  more than one Metadata Adjuster transformation filter can be used in a single pipeline.  This may be useful
                      if other document transformers (such as the Tika Content Extractor, below) change the metadata of the document being processed.</p>
                <p>The Metadata Adjuster transformation connection type does not require anything other than standard configuration information.</p>
                <p>The Metadata Adjuster transformation connection type contributes one tab to a job definition.  This is the "Metadata expressions" tab.
                      The "Metadata expressions" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/metadataadjuster-job-expressions-metadata.PNG" alt="Metadata Adjuster specification, Metadata Expressions tab" width="80%"/>
                <br/><br/>
                <p>On the left, you must supply the target metadata name.  You may then choose among two possibilities: either you choose to request that this metadata
                      field be removed from the target document, or you can choose to specify a rule that would provide a value for that target metadata item.  You can
                      provide more than one rule for the same metadata item, by simply adding additional lines to the table with the same target metadata name.  But if you specify
                      a rule to remove the metadata field from the document, that selection overrides all others.</p>
                <p>Metadata rules are just strings, which may have field specifications within them.  For example, the rule value "hello" will generate a single-valued metadata
                      field with the value "hello".  The rule "hello ${there}", on the other hand, will generate a value for each value in the incoming field  named "there". If the incoming
                      field had the values "a", "b", and "c", then the rule would generate a three-valued field with values "hello a", "hello b", and "hello c".  If more than one incoming
                      field is specified, then a combinatoric combination of the field values will be produced.</p>
                <p>You can also use regular expressions in the substitution string, for example: "${there|[0-9]*}", which will extract the first sequence of sequential numbers it finds in the
                      value of the field "there", or "${there|string(.*)|1}", which will include everything following "string" in the field value.  (The third argument specifies the regular
                      expression group number, with an optional suffix of "l" or "u" meaning upper-case or lower-case.)</p>
                <p>Enter a parameter name, and either select to remove the value or provide an expression.  If you chose to supply an expression, enter the expression in the box.
                      Then, click the "Add" button.</p>
                <p>When your expressions have been edited, you can uncheck the "Keep all metadata"
                      checkbox in order to prevent unspecified metadata fields from being passed through.  Uncheck the "Remove empty metadata values" checkbox if you
                      want to index empty metadata values.</p>
            </section>

            <section id="nulltransformer">
                <title>Null Transformer</title>
                <p>The null transformer does nothing other than record activity through the transformer.  It is thus useful primarily as a coding model, and a diagnostic
                      aid.  It requires no non-standard configuration information, and provides no tabs for a job that includes it.</p>
            </section>

            <section id="tikaextractor">
                <title>Tika Content Extractor</title>
                <p>The Tika Content Extractor transformation filter converts a binary document into a UTF-8 text stream, plus metadata.  This transformation filter
                      is used primarily when incoming binary content is a possibility, or content that is not binary but has a non-standard encoding such as Shift-JIS.
                      The Tika Content Extractor extracts metadata from the incoming stream as well.  This metadata can be mapped within the Tika Content Extractor
                      to metadata field names appropriate for further use downstream in the pipeline.</p>
                <p>As with all document transformers,  more than one Tika Content Extractor transformation filter can be used in a single pipeline.  In the case
                      of the Tika Content Extractor, this does not seem to be of much utility.</p>
                <p>The Tika Content Extractor transformation connection type does not require anything other than standard configuration information.</p>
                <p>The Tika Content Extractor transformation connection type contributes three tabs to a job definition.  These are the "Field mapping" tab, the "Exceptions" tab,
                      and the "Boilerplate" tab.  The "Field mapping" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/tika-job-field-mapping.PNG" alt="Tika Content Extractor specification, Field Mapping tab" width="80%"/>
                <br/><br/>
                <p>Enter a Tika-generated metadata field name, and a final field name, and click the "Add" button to add the mapping to the list.  Uncheck the
                      "Keep all metadata" checkbox if you want unspecified Tika metadata to be excluded from the final document.</p>
                <p>The "Exceptions" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/tika-job-exceptions.PNG" alt="Tika Content Extractor specification, Exceptions tab" width="80%"/>
                <br/><br/>
                <p>Uncheck the checkbox to allow indexing of document metadata even when Tika fails to extract content from the document.</p>
                <p>The "Boilerplate" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/tika-job-boilerplate.PNG" alt="Tika Content Extractor specification, Boilerplate tab" width="80%"/>
                <br/><br/>
                <p>Select the HTML boilerplate removal option you want.  These are implementations provided by the "Boilerpipe" project; they are lightly documented,
                      so you will need to experiment with your particular application to find the one most appropriate for your application.</p>
            </section>

        </section>

        <section id="mappingconnectiontypes">
            <title>User Mapping Connection Types</title>

            <section id="regexpmapper">
                <title>Regular Expression User Mapping Connection</title>
                <p>The Regular Expression user mapping connection type is very helpful for rote user name conversions of all sorts.  For example, it can easily be configured to map the standard "user@domain" form
                       of an Active Directory user name to (say) a LiveLink equivalent, e.g. "domain\user".  Since many repositories establish such rote conversions, the Regular Expression user mapping connection
                       type is often all that you will ever need.</p>
                <br/>
                <p>A Regular Expression user mapping connection type has one special tab in the user mapping connection editing screen: "User Mapping".  This
                       tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/regexp-mapping-user-mapping.PNG" alt="Regexp User Mapping, User Mapping tab" width="80%"/>
                <br/><br/>
                <p>The mapping consists of a match expression, which is a regular expression where parentheses ("(" and ")") mark sections you are interested in, and a
                       replace string.  The sections marked with parentheses are called "groups" in regular expression parlance.  The replace string consists of constant text plus
                       substitutions of the groups from the match, perhaps modified.  For example, "$(1)" refers to the first group within the match, while "$(1l)" refers to the first
                       match group mapped to lower case.  Similarly, "$(1u)" refers to the same characters, but mapped to upper case.</p>
                <p>For example, a match expression of <code>^(.*)\@([A-Z|a-z|0-9|_|-]*)\.(.*)$</code> with a replace string of <code>$(2)\$(1l)</code> would convert
                      an Active Directory username of <code>MyUserName@subdomain.domain.com</code> into the user name
                      <code>subdomain\myusername</code>.</p>
                <p>When you are done, click the "Save" button.  When you do, a connection summary and status screen will be presented, which may look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/regexp-mapping-status.PNG" alt="Regexp User Mapping Status" width="80%"/>
                <br/><br/>
            </section>
        </section>

        <section id="authorityconnectiontypes">
            <title>Authority Connection Types</title>

            <section id="adauthority">
                <title>Active Directory Authority Connection</title>
                <p>An active directory authority connection is essential for enforcing security for documents from Windows shares, Microsoft SharePoint (in ActiveDirectory mode), and IBM FileNet repositories.
                       This connection type needs to be provided with information about how to log into an appropriate Windows domain controller, with a user that has sufficient privileges to
                       be able to look up any user's ID and group relationships.</p>
                <br/>
                <p>An Active Directory authority connection type has two special tabs in the authority connection editing screen: "Domain Controller", and "Cache".  The "Domain Controller"
                       tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/ad-configure-dc.PNG" alt="AD Configuration, Domain Controller tab" width="80%"/>
                <br/><br/>
                <p>As you can see, the Active Directory authority allows you to configure multiple connections to different, but presumably related, domain controllers.  The choice of
                       which domain controller will be accessed is determined by traversing the list of configured domain controllers from top to bottom, and finding the first one that
                       matches the domain suffix field specified.  Note that a blank value for the domain suffix will match <strong>all</strong> users.</p>
                <p>To add a domain controller to the end of the list, fill in the requested values.  Note that the "Administrative user name" field usually requires no domain suffix, but
                       depending on the details of how the domain controller is configured, may sometimes only accept the "name@domain" format.  When you have completed your
                       entry, click the "Add to end" button to add the domain controller rule to the end of the list.  Later, when other domain controllers are present in the list, you can
                       click a different button at an appropriate spot to insert the domain controller record into the list where you want it to go.</p>
                <p>The Active Directory authority connection type also has a "Cache" tab, for managing the caching of individual user responses:</p>
                <br/><br/>
                <figure src="images/en_US/ad-configure-cache.PNG" alt="AD Configuration, Cache tab" width="80%"/>
                <br/><br/>
                <p>Here you can control how many individual users will be cached, and for how long.</p>
                <p>When you are done, click the "Save" button.  When you do, a connection summary and status screen will be presented, which may look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/ad-status.PNG" alt="AD Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the Active Directory connection is not responding, which is leading to an error status message instead of "Connection working".</p>
            </section>

            <section id="alfrescowebscriptauthority">
                <title>Alfresco Webscript Authority Connection</title>
                <p>The Alfresco Webscript authority connection type helps secure documents indexed using the Alfresco Webscript repository connection type.</p>
                <p>Independently of how the permissions schema is finally configured within the Alfresco instance, the Alfresco Webscript Autorithy service can retrieve the ACLs tokens associated to the users
                  at request time. The connector is based on a single, secured service that directly enquires the Alfresco instance for the users permissions at all levels. The permissions tokens returned will be
                  consistent with the Alfresco permissions model, therefore this Authority Connector makes sense to work only with the Alfresco Webscript Repository Connector and not any other connector</p>
                <p>IMPORTANT: in order to put available the required services within Alfresco, it is necessary FIRST to install and deploy within the Alfresco instance the
                  following <a href="https://github.com/maoo/alfresco-indexer">Alfresco Webscript</a> </p>. Please follow the instructions in the README file.
                <p>The Alfresco Webscript Authority Connection has a single configuration tab in the authority connection editing screen called "Server" where one needs to configure the Alfresco's services endpoint:</p>
                <br/><br/>
                <figure src="images/en_US/alfresco-authority.png" alt="Alfresco Server Endpoint Configuration" width="80%"/>
                <br/><br/>
                <p>As you can see, the Alfresco endpoint settings are quite simple and almost self-explicative:</p>
                <ul>
                  <li><strong>Protocol:</strong> HTTP or HTTPS depending on your instance</li>
                  <li><strong>HostName:</strong> IP or domain where the Alfresco instance is hosted in your network</li>
                  <li><strong>Port:</strong> port where the Alfresco instance has been deployed</li>
                  <li><strong>Context:</strong> URL path where the webscript services has been deployed (/alfresco/service by default) after installed the WebScript</li>
                  <li><strong>User:</strong> user ID used for performing the authored request to Alfresco. The user MUST have enough privileges for consulting any other user permissions, therefore admin user used to be a good idea</li>
                  <li><strong>Password:</strong> password of the above user in Alfresco</li>
                </ul>
            </section>

            <section id="cmisauthority">
              <title>CMIS Authority Connection</title>
              <p>A CMIS authority connection is required for enforcing security for documents retrieved from CMIS repositories.</p>
              <p>The CMIS specification includes the concept of authorities only depending on a specific document, this authority connector is only based on a regular expression comparator.</p>
              <p>A CMIS authority connection has the following special tab that you will need to configure: the "Repository" tab. The "Repository" tab looks like this:</p>
              <br/><br/>
              <figure src="images/en_US/cmis-authority-connection-configuration-repository.png" alt="CMIS Authority, Repository configuration" width="80%"/>
              <br/><br/>
              <p>The repository configuration will be only used to track an ID for a specific CMIS repository. No calls will be performed against the CMIS repository.</p>
              <p>When you are done, click the "Save" button.  You will then see a summary and status for the authority connection:</p>
              <br/><br/>
              <figure src="images/en_US/cmis-authority-connection-configuration-save.png" alt="CMIS Authority, saving configuration" width="80%"/>
              <br/><br/>
            </section>

            <section id="documentumauthority">
                <title>EMC Documentum Authority Connection</title>
                <p>A Documentum authority connection is required for enforcing security for documents retrieved from Documentum repositories.</p>
                <p>This connection type needs to be provided with information about what Content Server to connect to, and the credentials that should be used to retrieve a user's ACLs from that machine.
                    In addition, you can also specify whether or not you wish to include auto-generated ACLs in every user's list.  Auto-generated ACLs are created within Documentum for every folder
                    object.  Because there are often a very large number of folders, including these ACLs can bloat the number of ManifoldCF access tokens returned for a user to tens of thousands, which can negatively
                    impact perfomance.  Even more notably, few Documentum installations make any real use of these ACLs in any way.  Since Documentum's ACLs are purely additive (that is, there are no
                    mechanisms for 'deny' semantics), the impact of a missing ACLs is only to block a user from seeing something they otherwise could see.  It is thus safe, and often desirable, to simply ignore the
                    existence of these auto-generated ACLs.</p>
                <p>A Documentum authority connection has three special tabs you will need to configure: the "Docbase" tab, the "User Mapping" tab, and the "System ACLs" tab.</p>
                <p>The "Docbase" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/documentum-authority-docbase.PNG" alt="Documentum Authority, Docbase tab" width="80%"/>
                <br/><br/>
                <p>Enter the desired Content Server docbase name, and enter the appropriate credentials.  You may leave the "Domain" field blank if the Content Server you specify does not have
                    Active Directory support enabled.</p>
                <p>The purpose of the User Mapping tab is to control whether user lookups in Documentum are case sensitive or not.  The "User Mapping" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/documentum-authority-user-mapping.PNG" alt="Documentum Authority, User Mapping tab" width="80%"/>
                <br/><br/>
                <p>Here you can specify whether the mapping between incoming user names and Content Server user names is case sensitive or case insensitive.  No other mappings
                    are currently permitted.  Typically, Documentum instances operate in conjunction with Active Directory, such that Documentum user names are either the same as the Active Directory user names,
                    or are the Active Directory user names mapped to all lower case characters.  You may need to consult with your Documentum system administrator to decide what the correct setting should be for
                    this option.</p>
                <p>The "System ACLs" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/documentum-authority-system-acls.PNG" alt="Documentum Authority, System ACLs tab" width="80%"/>
                <br/><br/>
                <p>Here, you can choose to ignore all auto-generated ACLs associated with a user.  We recommend that you try ignoring such ACLs, and only choose the default if you have
                    reason to believe that your Documentum content is protected in a significant way by the use of auto-generated ACLs.  Your may need to consult with your Documentum system administrator to
                    decide what the proper setting should be for this option.</p>
                <p>When you are done, click the "Save" button.  When you do, a connection summary and status screen will be presented:</p>
                <br/><br/>
                <figure src="images/en_US/documentum-authority-status.PNG" alt="Documentum Authority Status" width="80%"/>
                <br/><br/>
                <p>Pay careful attention to the status, and be prepared to correct any
                    problems that are displayed.</p>
            </section>

             <section id="genericauthority">
              <title>Generic Authority</title>
              <p>Generic authority is intended to be used with Generic Connector and provide authentication tokens based on generic API. The idea is that you can use it and implement only the API which is designed
                  to be fine grained and as simple as it is possible to handle all tasks.</p>
              <p>API should be implemented as xml web page (entry point) returning results based on provided GET params. It may be a simple server script or part of the bigger application.
                  API can be secured with HTTP basic authentication.</p>
              <br/>
              <p>There are 2 actions:</p>
              <ul>
                <li>check</li>
                <li>auth</li>
              </ul>
              <p>Action is passed as "action" GET param to the entrypoint.</p>
              <br/><br/>
              <p><b>[entrypoint]?action=check</b></p>
              <p>Should return HTTP status code 200 providing information that entrypoint is working properly. Any content returned will be ignored, only the status code matters.</p>
              <br/><br/>

              <p><b>[entrypoint]?action=auth&amp;username=UserName@Domain</b></p>
              <p>Parameters:</p>
              <ul>
                <li>username - name of the user we want to resolve and fetch tokens.</li>
              </ul>
              <p>Result should be valid XML of form:</p>
              <source>
&lt;auth exists="true|false"&gt;
   &lt;token&gt;token_1&lt;/token&gt;;
   &lt;token&gt;token_2&lt;/token&gt;;
   ...
&lt;/auth&gt;
              </source>
              <p><code>exists</code> attribute is required and it carries information whether user is valid or not.</p>
              <br/><br/>
            </section>

            <section id="jdbcauthority">
                <title>Generic Database Authority Connection</title>
                <p>The generic database connection type allows you to generate access tokens from a database table, served by one of the following databases:</p>
                <br/>
                <ul>
                    <li>Postgresql (via a Postgresql JDBC driver)</li>
                    <li>SQL Server (via the JTDS JDBC driver)</li>
                    <li>Oracle (via the Oracle JDBC driver)</li>
                    <li>Sybase (via the JTDS JDBC driver)</li>
                    <li>MySQL (via the MySQL JDBC driver)</li>
                </ul>
                <br/>
                <p>This connection type <b>cannot</b> be configured to work with other databases than the ones listed above without software changes.  Depending on your particular installation,
                       some of the above options may not be available.</p>
                <p>A generic database authority connection has four special tabs on the repository connection editing screen: the "Database Type" tab, the "Server" tab,
                      the "Credentials" tab, and the "Queries" tab.  The "Database Type" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-authority-configure-database-type.PNG" alt="Generic Database Authority Connection, Database Type tab" width="80%"/>
                <br/><br/>
                <p>Select the kind of database you want to connect to, from the pulldown.</p>
                <p>Also, select the JDBC access method you want from the access method pulldown.  The access method is provided because the JDBC specification has been
                    recently clarified, and not all JDBC drivers work the same way as far as resultset column name discovery is concerned.  The "by name" option currently works
                    with all JDBC drivers in the list except for the MySQL driver.  The "by label" works for the current MySQL driver, and may work for some of the others as well.  If
                    the queries you supply for your generic database jobs do not work correctly, and you see an error message about not being able to find required columns in the
                    result, you can change your selection on this pulldown and it may correct the problem.</p>
                <p>The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-authority-configure-server.PNG" alt="Generic Database Authority Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>Here you have a choice.  <strong>Either</strong> you can choose to specify the database host and port, and the database name or instance name,
                      <strong>or</strong> you can provide a raw JDBC connection string that is appropriate for the database type you have chosen.  This latter option
                      is provided because many JDBC drivers, such as Oracle's, now can connect to an entire cluster of Oracle servers if you specify the appropriate
                      connection description string.</p>
                <p>If you choose the second option, just consult your JDBC driver's documentation and supply your string.  If there is anything entered in the raw connection
                      string field at all, it will take precedence over the database host and database name fields.</p>
                <p>If you choose the first option, the server name and port must be provided in the "Database host and port" field.  For example, for Oracle, the standard
                      Oracle installation uses port 1521, so you would enter something like, "my-oracle-server:1521" for this field.  Postgresql uses port 5432 by default, so
                      "my-postgresql-server:5432" would be required.  SQL Server's standard port is 1433, so use "my-sql-server:1433".</p>
                <p>The service name or instance name field describes which instance and database to connect to.  For Oracle or Postgresql, provide just the database name.
                      For SQL Server, use "my-instance-name/my-database-name".  For SQL Server using the default instance, use just the database name.</p>
                <p>The "Credentials" tab is straightforward:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-authority-configure-credentials.PNG" alt="Generic Database Authority Connection, Credentials tab" width="80%"/>
                <br/><br/>
                <p>Enter the database user credentials.</p>
                <p>The "Queries" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-authority-configure-queries.PNG" alt="Generic Database Authority Connection, Queries tab" width="80%"/>
                <br/><br/>
                <p>Here you supply two queries.  The first query looks up the user name to find a user id.  The second query looks up access tokens corresponding to the
                      user id.  Details of what you supply for these queries will depend on your database schema.</p>
                <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-authority-status.PNG" alt="Generic Database Authority Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the generic database authority connection is not properly authenticated, which is leading to an error status message instead
                      of "Connection working".</p>
            </section>


            <section id="ldapauthority">
                <title>LDAP Authority Connection</title>
                <p>An LDAP authority connection can be used to provide document security in situations where there is no native document security
                      model in place.  Examples include Samba shares, Wiki pages,  RSS feeds, etc.</p>
                <p>The LDAP authority works by providing user or group names from an LDAP server as access tokens.  These access tokens can
                      be used by any repository connection type that provides for access tokens entered on a per-job basis, or by the JCIFs connection type,
                      which has explicit user/group name support built in, meant for Samba shares.</p>
                <p>This connection type needs to be provided with information about how to log into an appropriate LDAP server, as well as search
                      expressions needed to look up user and group records.  An active directory authority connection type has a single special tab in the
                      authority connection editing screen: the "LDAP" tab:</p>
                <br/><br/>
                <figure src="images/en_US/ldap-configure-ldap.PNG" alt="LDAP Configuration, LDAP tab" width="80%"/>
                <br/><br/>
                <p>Fill in the requested values.  Note that the "Server base" field contains the LDAP domain specification you want to search.  For
                      example, if you have an LDAP domain for "people.myorg.com", the server based might be "dc=com,dc=myorg,dc=people".</p>
                <p>When you are done, click the "Save" button.  When you do, a connection
                       summary and status screen will be presented, which
                       may look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/ldap-status.PNG" alt="LDAP Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the LDAP connection is not responding, which is leading to an error status message instead of "Connection working".</p>
                <br/><br/>
				<p>Example configuration for ActiveDirectory server to fetch user groups:</p>
				<ul>
				  <li>Server: [xxx.yyy.zzz.ttt]</li>
				  <li>Port: 389</li>
				  <li>Server base: [DC=domain,DC=name]</li>
				  <li>Bind as user: [user@domain.name]</li>
				  <li>Bind with password: [password for that user]</li>
				  <li>User search base: CN=Users</li>
				  <li>User search filter: sAMAccountName={0}</li>
				  <li>User name attribute: sAMAccountName</li>
				  <li>Group search base: CN=Users</li>
				  <li>Group search filter: (member:1.2.840.113556.1.4.1941:={0})</li>
				  <li>Group name attribute: sAMAccountName</li>
				  <li>Member attribute is DN: yes (tick the checkbox)</li>
				</ul>
				<p><code>member:1.2.840.113556.1.4.1941:</code> gives you recursive check for nested groups</p>
            </section>

            <section id="livelinkauthority">
                <title>OpenText LiveLink Authority Connection</title>
                <p>A LiveLink authority connection is needed to enforce security for documents retrieved from LiveLink repositories.</p>
                <p>In order to function, this connection type needs to be provided with information about the name of the LiveLink server, and credentials appropriate
                    for retrieving a user's ACLs from that machine.  Since LiveLink operates with its own list of users, you may also want to specify a rule-based
                    mapping between an Active Directory user and the corresponding LiveLink user.  The authority type allows you to specify such a mapping using
                    regular expressions.</p>
                <p>A LiveLink authority connection has two special tabs you will need to configure: the "Server" tab and the "Cache" tab.</p>
                <p>The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-authority-server.PNG" alt="LiveLink Authority, Server tab" width="80%"/>
                <br/><br/>
                <p>Select the manner you want the connection to use to communicate with LiveLink.  Your options are:</p>
                <ul>
                  <li>Internal (native LiveLink protocol)</li>
                  <li>HTTP (communication with LiveLink through the IIS web server)</li>
                  <li>HTTPS (communication with LiveLink through IIS using SSL)</li>
                </ul>
                <p>Also, you need to enter the name of the desired LiveLink server, the LiveLink port, and the LiveLink server credentials.  If you have selected communication
                    using HTTP or HTTPS, you must provide a relative CGI path to your LiveLink.  You may also need to provide web server credentials.  Basic authentication
                    and older forms of NTLM are supported.  In order to use NTLM, specify a non-blank server domain name in the "Server HTTP domain" field, plus a non-
                    qualified user name and password.  If basic authentication is desired, leave the "Server HTTP domain" field blank, and provide basic auth credentials in the
                    "Server HTTP NTLM user name" and "Server HTTP NTLM password" fields.  For no web server authentication, leave these fields all blank.</p>
                <p>For communication using HTTPS, you will also need to upload your authority certificate(s) on the "Server" tab, to tell the connection which certificates to
                    trust.  Upload your certificate using the browse button, and then click the "Add" button to add it to the trust store.</p>
                <p>The "Cache" tab allows you to configure how the authority connection keeps an individual user's information around:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-authority-cache.PNG" alt="LiveLink Authority, Cache tab" width="80%"/>
                <br/><br/>
                <p>Here you set the time a user's information is kept around (the "Cache lifetime" field), and how many simultaneous users have their information cached
                      (the "Cache LRU size" field).</p>
                <p>When you are done, click the "Save" button.  You will then see a summary and status for the authority connection:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-authority-status.PNG" alt="LiveLink Authority Status" width="80%"/>
                <br/><br/>
                <p>We suggest that you examine the status carefully and correct any reported errors before proceeding.  Note that in this example, the LiveLink server would
                    not accept connections, which is leading to an error status message instead of "Connection working".</p>
            </section>


            <section id="meridioauthority">
                <title>Autonomy Meridio Authority Connection</title>
                <p>A Meridio authority connection is required for enforcing security for documents retrieved from Meridio repositories.</p>
                <p>This connection type needs to be provided with information about what Document Server to connect to, what Records Server to connect to, and what User Service Server
                    to connect to.  Also needed are the Meridio credentials that should be used to retrieve a user's ACLs from those machines.</p>
                <p>Note that the User Service is part of the Meridio Authority, and must be installed somewhere in the Meridio system in order for the Meridio Authority to function correctly.
                    If you do not know whether this has yet been done, or on what server, please ask your system administrator.</p>
                <p>A Meridio authority connection has the following special tabs you will need to configure: the "Document Server" tab, the "Records Server" tab, the "User Service Server" tab,
                    and the "Credentials" tab.  The "Document Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-authority-document-server.PNG" alt="Meridio Authority, Document Server tab" width="80%"/>
                <br/><br/>
                <p>Select the correct protocol, and enter the correct server name, port, and location to reference the Meridio document server services.  If a proxy is involved, enter the proxy host
                    and port.  Authenticated proxies are not supported by this connection type at this time.</p>
                <p>Note that, in the Meridio system, while it is possible that different services run on different servers, this is not typically the case.  The connection type, on the other hand, makes
                    no assumptions, and permits the most general configuration.</p>
                <p>The "Records Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-authority-records-server.PNG" alt="Meridio Authority, Records Server tab" width="80%"/>
                <br/><br/>
                <p>Select the correct protocol, and enter the correct server name, port, and location to reference the Meridio records server services.  If a proxy is involved, enter the proxy host
                    and port.  Authenticated proxies are not supported by this connection type at this time.</p>
                <p>Note that, in the Meridio system, while it is possible that different services run on different servers, this is not typically the case.  The connection type, on the other hand, makes
                    no assumptions, and permits the most general configuration.</p>
                <p>The "User Service Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-authority-user-service-server.PNG" alt="Meridio Authority, User Service Server tab" width="80%"/>
                <br/><br/>
                <p>You will require knowledge of where the special Meridio Authority extensions have been installed in order to fill out this tab.</p>
                <p>Select the correct protocol, and enter the correct server name, port, and location to reference the Meridio user service server services.  If a proxy is involved, enter the proxy host
                    and port.  Authenticated proxies are not supported by this connection type at this time.</p>
                <p>Note that, in the Meridio system, while it is possible that different services run on different servers, this is not typically the case.  The connection type, on the other hand, makes
                    no assumptions, and permits the most general configuration.</p>
                <p>The "Credentials" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-authority-credentials.PNG" alt="Meridio Authority, Credentials tab" width="80%"/>
                <br/><br/>
                <p>Enter the Meridio server credentials needed to access the Meridio system.</p>
                <p>When you are done, click the "Save" button.  You will then see a screen looking something like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-authority-status.PNG" alt="Meridio Authority Status" width="80%"/>
                <br/><br/>
                <p>In this example, logon has not succeeded because the server on which the Meridio Authority is running is unknown to the Windows domain under which Meridio is running.
                    This results in an error message, instead of the "Connection working" message that you would see if the authority was working properly.</p>
                <p>Since Meridio uses Windows IIS for authentication, there are many ways in which the configuration of either IIS or the Windows domain under which Meridio runs can affect
                    the correct functioning of the Meridio Authority.  It is beyond the scope of this manual to describe the kinds of analysis and debugging techniques that might be required to diagnose connection
                    and authentication problems.  If you have trouble, you will almost certainly need to involve your Meridio IT personnel.  Debugging tools may include (but are not limited to):</p>
                <br/>
                <ul>
                    <li>Windows security event logs</li>
                    <li>ManifoldCF logs (see below)</li>
                    <li>Packet captures (using a tool such as WireShark)</li>
                </ul>
                <br/>
                <p>If you need specific ManifoldCF logging information, contact your system integrator.</p>
            </section>

            <section id="sharepointadauthority">
                <title>Microsoft SharePoint ActiveDirectory Authority Connection</title>
                <p>A Microsoft SharePoint ActiveDirectory authority connection is meant to furnish access tokens from Active Directory for a SharePoint instance that is configured
                    to use Claims Based authorization.  It cannot be used in any other situation.</p>
                <p>The SharePoint ActiveDirectory authority is meant to work in conjunction with a SharePoint Native authority connection, and provides authorization information from one or
                    more Active Directory domain controllers.  Thus, it is only needed if Active Directory groups are used to furnish access to documents for users in the SharePoint system.</p>
                <p>Documents must be indexed using a Microsoft SharePoint repository connection where the "Authority type" is specified to be "Native".  If the "Authority type" is
                    specified to be "Active Directory", then instead you should configure an Active Directory authority connection, described above.</p>
                <p>This connection type needs to be provided with information about how to log into an appropriate Windows domain controller, with a user that has sufficient privileges to
                    be able to look up any user's ID and group relationships.</p>
                <br/>
                <p>A SharePoint Active Directory authority connection type has two special tabs in the authority connection editing screen: "Domain Controller", and "Cache".  The "Domain Controller"
                       tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepointadauthority-configure-dc.PNG" alt="SharePoint AD Configuration, Domain Controller tab" width="80%"/>
                <br/><br/>
                <p>As you can see, the SharePoint Active Directory authority allows you to configure multiple connections to different, but presumably related, domain controllers.  The choice of
                       which domain controller will be accessed is determined by traversing the list of configured domain controllers from top to bottom, and finding the first one that
                       matches the domain suffix field specified.  Note that a blank value for the domain suffix will match <strong>all</strong> users.</p>
                <p>To add a domain controller to the end of the list, fill in the requested values.  Note that the "Administrative user name" field usually requires no domain suffix, but
                       depending on the details of how the domain controller is configured, may sometimes only accept the "name@domain" format.  When you have completed your
                       entry, click the "Add to end" button to add the domain controller rule to the end of the list.  Later, when other domain controllers are present in the list, you can
                       click a different button at an appropriate spot to insert the domain controller record into the list where you want it to go.</p>
                <p>The SharePoint Active Directory authority connection type also has a "Cache" tab, for managing the caching of individual user responses:</p>
                <br/><br/>
                <figure src="images/en_US/sharepointadauthority-configure-cache.PNG" alt="SharePoint AD Configuration, Cache tab" width="80%"/>
                <br/><br/>
                <p>Here you can control how many individual users will be cached, and for how long.</p>
                <p>When you are done, click the "Save" button.  When you do, a connection summary and status screen will be presented, which may look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepointadauthority-status.PNG" alt="SharePoint AD Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the SharePoint Active Directory connection is not responding, which is leading to an error status message instead of "Connection working".</p>

            </section>

            <section id="sharepointnativeauthority">
                <title>Microsoft SharePoint Native Authority Connection</title>
                <p>A Microsoft SharePoint Native authority connection is meant to furnish access tokens from the same SharePoint instance that the documents are coming from.
                    You should use this authority type whenever you are trying to secure documents using a SharePoint repository connection that is configured to the use "Native"
                    authority type.</p>
                <p>If your SharePoint instance is configured to use the Claims Based authorization model, you may combine a SharePoint Native authority connection with other
                    SharePoint authority types, such as the SharePoint ActiveDirectory authority type, to furnish complete authorization support.  However, if Claims Based authorization is not
                    configured, the SharePoint Native authority connection is the only authority type you should need to use.</p>
                <p>A SharePoint authority connection has two special tabs on the authority connection editing screen: the "Server" tab, and the "Cache" tab.
                    The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepointnativeauthority-configure-server.PNG" alt="SharePoint Native Authority, Server tab" width="80%"/>
                <br/><br/>
                <p>Select your SharePoint server version from the pulldown.  Check with your SharePoint system administrator if you are not sure
                    what to select.</p>
                <p>Select whether your SharePoint server is configured for Claims Based authorization or not.  Check with your SharePoint system administrator if you are
                    not sure what to select.</p>
                <p>SharePoint uses a web URL model for addressing sites, subsites, libraries, and files.  The best way to figure out how to set up a SharePoint connection
                    type is therefore to start with your web browser, and visit the topmost root of the site you wish to crawl.  Then, record the URL you see in your browser.</p>
                <p>Select the server protocol, and enter the server name and port, based on what you recorded from the URL for your SharePoint site.  For the "Site path"
                    field, type in the portion of the root site URL that includes everything after the server and port, except for the final "aspx" file.  For example, if the SharePoint
                    URL is "http://myserver:81/sites/somewhere/index.asp", the site path would be "/sites/somewhere".</p>
                <p>The SharePoint credentials are, of course, what you used to log into your root site.  The SharePoint connection type always requires the user name to be
                    in the form "domain\user".</p>
                <p>If your SharePoint server is using SSL, you will need to supply enough certificates for the connection's trust store so that the SharePoint server's SSL
                    server certificate can be validated.  This typically consists of either the server certificate, or the certificate from the authority that signed the server certificate.
                    Browse to the local file containing the certificate, and click the "Add" button.</p>
                <p>The "Cache" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepointnativeauthority-configure-cache.PNG" alt="SharePoint Native Authority, Cache tab" width="80%"/>
                <br/><br/>
                <p>Fill in the desired caching parameters.</p>
                <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepointnativeauthority-status.PNG" alt="SharePoint Native Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the SharePoint connection is not actually referencing a SharePoint instance, which is leading to an error status message instead of
                    "Connection working".</p>
            </section>


       </section>

        <section id="repositoryconnectiontypes">
            <title>Repository Connection Types</title>

            <section id="alfrescorepository">
              <title>Alfresco Repository Connection</title>
              <p>The Alfresco Repository Connection type allows you to index content from an Alfresco repository.</p>
              <p>This connector is compatible with any Alfresco version (2.x, 3.x and 4.x).</p>
              <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
              <br/>
              <p>An Alfresco connection has the following configuration parameters on the repository connection editing screen:</p>
              <br/><br/>
              <figure src="images/en_US/alfresco-repository-connection-configuration.png" alt="Alfresco Repository Connection, configuration parameters" width="80%"/>
              <br/><br/>
              <p>Enter the correct username, password and the endpoint to reference the Alfresco document server services.</p>
              <p>You also can set a specific Socket Timeout to correctly tune the connector for your own Alfresco repository settings.</p>
              <p>If you have a Multi-Tenancy environment configured in the repository, be sure to also set the tenant domain parameter.</p>
              <p>The endpoint consists of the HTTP protocol, hostname, port and the context path of the Alfresco Web Services API exposed by the Alfresco server.</p>
              <p>By default, if you don't have changed the context path of the Alfresco webapp, you should have an endpoint address similar to the following:</p>
              <br/><br/>
              <p><code>http://HOSTNAME:PORT/alfresco/api</code></p>
              <br/><br/>
              <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
              <br/><br/>
              <figure src="images/en_US/alfresco-repository-connection-configuration-save.png" alt="Alfresco Repository Connection, saving configuration" width="80%"/>
              <br/><br/>
              <p>When you configure a job to use the Alfresco repository connection an additional tab is presented. This is the "Lucene Query" tab:</p>
              <br/><br/>
              <figure src="images/en_US/alfresco-repository-connection-job-lucenequery.png" alt="Alfresco Repository Connection, Lucene Query" width="80%"/>
              <br/><br/>
              <p>The Lucene Query tab allows you to specify the query based on the Lucene Query Language to get all the result documents that need to be ingested.</p>
              <p>Please note that if the Lucene Query is null, the connector will ingest all the contents in the Alfresco repository under the Company Home.</p>
              <p>Please also note that the Alfresco Connector during the ingestion process, for each result, if it will find a folder node (that must have any child association defined for the node type), it will ingest all the children of the folder node; otherwise it will directly ingest the document (that must have any d:content as one of the properties of the node).</p>
              <p>When you are done, and you click the "Save" button, you will see a summary page looking something like this:</p>
              <br/><br/>
              <figure src="images/en_US/alfresco-repository-connection-job-save.png" alt="Alfresco Repository Connection, saving job" width="80%"/>
              <br/><br/>
            </section>

            <section id="alfrescowebscriptrepository">
              <title>Alfresco Webscript Repository Connection</title>
              <p>The Alfresco Webscript Repository connection type allows you to index content from an Alfresco repository.  It also supports document
                    security, in conjunction with the Alfresco Webscript Authority connection Type.</p>
              <p>The current connector relies on a set of services that have been developed on top of Alfresco for easing content and metadata retrieving from an Alfresco instance. These services will be available within an Alfresco
              instance after installing the following artifact: <a href="https://github.com/maoo/alfresco-indexer">Alfresco Indexer</a>. Please, make sure that you, FIRST, install and deploy within the desired Alfresco instance the AMP generated after building the Alfresco Indexer project before trying to index content from ManifoldCF.</p>
              <p>By default each Alfresco Webscript Connection manages a single Alfresco repository, this means that if you have multiple Alfresco repositories that you want to manage, you need to create a specific connection for each one.</p>
              <p>The Alfresco Webscript Repository connector has a single configuration tab in the repository connection editing screen called "Server" where one needs to configure the Alfresco's services endpoint:</p>
              <br/><br/>
                <figure src="images/en_US/alfresco-connector.png" alt="Alfresco Server Endpoint Configuration" width="80%"/>
                <br/><br/>
                <p>As you can see, the Alfresco endpoint settings are quite simple and almost self-explicative:</p>
                <ul>
                  <li><strong>Protocol:</strong> HTTP or HTTPS depending on your instance</li>
                  <li><strong>HostName:</strong> IP or domain where the Alfresco instance is hosted in your network</li>
                  <li><strong>Port:</strong> port where the Alfresco instance has been deployed</li>
                  <li><strong>Context:</strong> URL path where the webscript services has been deployed (/alfresco/service by default) after installed the WebScript</li>
                  <li><strong>Store Protocol: Alfresco's store protocol to be used (workspace/archive)</strong> </li>
                  <li><strong>StoreID:</strong> store's name</li>
                  <li><strong>User:</strong> user ID used for performing the authored requests to Alfresco. The user MUST have enough privileges for all the request, therefore admin user used to be a good idea</li>
                  <li><strong>Password:</strong> password of the above user in Alfresco</li>
                </ul>
                <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/alfresco-connector-save.png" alt="Alfresco Webscript Repository Connection saving" width="80%"/>
                <br/><br/>
                <p>When you configure a job to use the Alfresco Webscript repository connection an additional tab is presented. This is the "Filtering Configuration" tab:</p>
                <br/><br/>
                <figure src="images/en_US/alfresco-connector-job.png" alt="Alfresco Content Filtering" width="80%"/>
                <br/><br/>
                <p>The Filtering Configuration tab allows you to fully customize the crawling job on Alfresco by defining which kind of content do you want to index from your Alfresco repository.
                  The configuration tab consist on a list of filters that can be combined for indexing only certain documents or certain parts of the repository:</p>
                <ul>
                  <li><strong>Site Filtering:</strong> List of sites to be crawled. Only documents belonging to these sites will be indexed</li>
                  <li><strong>MimeType Filtering:</strong> Allow to filter documents by mimetype in Alfresco</li>
                  <li><strong>Aspect Filtering:</strong> index only those documents associated to the configured aspects</li>
                  <li><strong>Metadata Filtering:</strong> index only those documents that at least have the specified value for one of the configured metadata field</li>
                </ul>
            </section>

            <section id="cmisrepository">
              <title>CMIS Repository Connection</title>
              <p>The CMIS Repository Connection type allows you to index content from any CMIS-compliant repository.</p>
              <p>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.</p>
              <p>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.</p>
              <br/>
              <p>A CMIS connection has the following configuration parameters on the repository connection editing screen:</p>
              <br/><br/>
              <figure src="images/en_US/cmis-repository-connection-configuration.png" alt="CMIS Repository Connection, configuration parameters" width="80%"/>
              <br/><br/>
              <p>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.</p>
              <p>The endpoint consists of the HTTP protocol, hostname, port and the context path of the CMIS service exposed by the CMIS server:</p>
              <br/><br/>
              <p><code>http://HOSTNAME:PORT/CMIS_CONTEXT_PATH</code></p>
              <br/><br/>
              <p>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.</p>
              <br/>
              <p>Note that, in a CMIS system, a specific binding protocol has its own context path, this means that the endpoints are different:</p>
              <p>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:</p>
              <p><code>http://localhost:8080/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT/atom</code></p>
              <br/><br/>
              <p>The Web Services binding is exposed using a different endpoint:</p>
              <p><code>http://localhost:8080/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT/services/RepositoryService</code></p>
              <br/><br/>
              <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
              <br/><br/>
              <figure src="images/en_US/cmis-repository-connection-configuration-save.png" alt="CMIS Repository Connection, saving configuration" width="80%"/>
              <br/><br/>
              <p>When you configure a job to use the CMIS repository connection an additional tab is presented. This is the "CMIS Query" tab:</p>
              <br/><br/>
              <figure src="images/en_US/cmis-repository-connection-job-cmisquery.png" alt="CMIS Repository Connection, CMIS Query" width="80%"/>
              <br/><br/>
              <p>The CMIS Query tab allows you to specify the query based on the CMIS Query Language to get all the result documents that need to be ingested.</p>
              <p>Note that the CMIS Connector during the ingestion process, for each result, if it will find a folder node (that must have cmis:folder as the baseType), it will ingest all the children of the folder node; otherwise it will directly ingest the document (that must have cmis:document as the baseType).</p>
              <p>When you are done, and you click the "Save" button, you will see a summary page looking something like this:</p>
              <br/><br/>
              <figure src="images/en_US/cmis-repository-connection-job-save.png" alt="CMIS Repository Connection, saving job" width="80%"/>
              <br/><br/>
            </section>

            <section id="documentumrepository">
                <title>EMC Documentum Repository Connection</title>
                <p>The EMC Documentum connection type allows you index content from a Documentum Content Server instance.  A single connection allows you
                    to reach all documents contained on a single Content Server instance.  Multiple connections are therefore required to reach documents from multiple Content Server instances.</p>
                <p>For each Content Server instance, the Documentum connection type allows you to index any Documentum content that is of type dm_document, or is derived from dm_document.
                    Compound documents are handled as well, but only by mean of the component documents that make them up.  No other Documentum construct can be indexed at this time.</p>
                <p>Documents described by Documentum connections are typically secured by a Documentum authority.  If you have not yet created a Documentum authority, but would like your
                    documents to be secured, please follow the direction in the section titled "EMC Documentum Authority Connection".</p>
                <p>A Documentum connection has the following special tabs: "Docbase", and "Webtop".  The "Docbase" tab allows you to select a Content Server to connect to, and also to provide
                    appropriate credentials.  The "Webtop" tab describes the location of a Webtop server that will be used to display the documents from that Content Server, after they have been indexed.</p>
                <p>The "Docbase" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/documentum-docbase.PNG" alt="Documentum Connection, Docbase tab" width="80%"/>
                <br/><br/>
                <p>Enter the Content Server Docbase instance name, and provide your credentials.  You may leave the "Domain" field blank, if the Content Server instance does not have AD integration enabled.</p>
                <p>The "Webtop tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/documentum-webtop.PNG" alt="Documentum Connection, Docbase tab" width="80%"/>
                <br/><br/>
                <p>Enter the components of the base URL of the Webtop instance you want to use for serving the documents.  Remember that this information will only be used to construct
                    a URL to the document to allow user inspection; it will not be used for any crawling activities.</p>
                <p>When you are done, click the "Save" button.  When you do, a connection summary and status screen will be presented:</p>
                <br/><br/>
                <figure src="images/en_US/documentum-status.PNG" alt="Documentum Connection Status" width="80%"/>
                <br/><br/>
                <p>Pay careful attention to the status, and be prepared to correct any
                    problems that are displayed.</p>
                <p></p>
                <p>A job created to use a Documentum connection has the following additional tabs associated with it: "Paths", "Document Types", "Content Types", "Security", and "Path Metadata".</p>
                <p>The "Paths" tab allows you to construct the paths within Documentum that you want to scan for content.  If no paths are selected, all content will be considered eligible.</p>
                <p>The "Document Types" tab allows you to select what document types you want to index.  Only document types that are derived from dm_document, which are flagged by the system administrator
                    as being "indexable", will be presented for your selection.  On this tab also, for each document type you index, you may choose included specific metadata for documents of that type, or you can
                    check the "All metadata" checkbox to include all metadata associated with documents of that type.</p>
                <p>The "Content Types" tab allows you to select which Documentum mime-types are to be included in the document set.  Check the types you want to include, and uncheck the types you want to
                    exclude.</p>
                <p>The "Security" tab allows you to disable or enable Documentum security for the documents described by this job.  You can turn off native Documentum security by clicking the "Disable" radio button.
                    If you do this, you may also enter your own access tokens, which will be applied to all documents described by the job.  The form of the access tokens you enter will depend on the governing
                    authority connection type.  Click the "Add" button to add each access token.</p>
                <p>The "Path Metadata" tab allows you to send each document's path information as metadata to the index.  To enable this feature, enter the name of the metadata
                    attribute you want this information to be sent into the "Path attribute name" field.  Then, add the rules you want to the list of rules.  Each rule has a match expression, which is a regular expression where
                    parentheses ("(" and ")") mark sections you are interested in.  These sections are called "groups" in regular expression parlance.  The replace string consists of constant text plus
                    substitutions of the groups from the match, perhaps modified.  For example, "$(1)" refers to the first group within the match, while "$(1l)" refers to the first match group
                    mapped to lower case.  Similarly, "$(1u)" refers to the same characters, but mapped to upper case.</p>
                <p>For example, suppose you had a rule which had ".*/(.*)/(.*)/.*" as a match expression, and "$(1) $(2)" as the replace string.  If presented with the path
                    <code>Project/Folder_1/Folder_2/Filename</code>, it would output the string <code>Folder_1 Folder_2</code>.</p>
                <p>If more than one rule is present, the rules are all executed in sequence.  That is, the output of the first rule is modified by the second rule, etc.</p>
            </section>

            <section id="dropboxrepository">
              <title>Dropbox Repository Connection</title>
              <p>The Dropbox Repository Connection type allows you to index content from <a href="https://www.dropbox.com/home">Dropbox</a>.</p>
              <p>Each Dropbox Connection manages access to a single dropbox repository. This means that if you have multiple dropbox repositories (i.e. different users),
                you need to create a specific connection for each dropbox repository and provide the associated authentication information.</p>
              <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
              <br/>
              <p>A Dropbox connection has the following configuration parameters on the repository connection editing screen:</p>
              <br/><br/>
              <figure src="images/en_US/dropbox-repository-connection-configuration.PNG" alt="Dropbox Repository Connection, configuration parameters" width="80%"/>
              <br/><br/>
              <p>As we can see there are 4 pieces of information which are needed to create a succesful connection. The application key and secret are given by dropbox
                when you register your application for a development license. This is typically done through the application developer <a href="https://www.dropbox.com/developers/apps">Dropbox website</a>.</p>
              <br/><br/>
              <figure src="images/en_US/dropbox-repository-create-application.PNG" alt="Dropbox create application" width="80%"/>
              <br/><br/>
              <p>For our purposes, we need to select "Core" as the application type as we'll be using REST services to communicate with dropbox. Also we select
                "full access". This merits a small discussion. Typically an application which wants to store and retreive information does so from an application specific
                folder. In this case, we assume that the user wants to have access to their files as is, and not copy them into a manifoldcf specific folder. As a result,
                we have selected full access instead of "App folder".</p>
              <br/><br/>
              <figure src="images/en_US/dropbox-repository-application-secret-passwords.PNG" alt="Dropbox get key and secret passwords" width="80%"/>
              <br/><br/>
              <p> Afterwards we can see the app key and app secret which are the two pieces of information requested by the connector.</p>
              <p>Now each user must confirm their acceptance of allowing your application to access their dropbox. This is done through a run-of-the-mill OAUTH
                approach. After providing your application key and secret, the user is directed to a dropbox website asking them if they wish to grant permission to your
                application. After they accept the request, dropbox provides a client key and secret. These are the last two pieces of information needed for the dropbox
                connector. This process is covered in depth at the <a href="https://www.dropbox.com/developers/core/authentication">dropbox website</a>
                which shows examples of how to generate the two needed client tokens. </p>
              <br/>
              <br/><br/>
              <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
              <br/><br/>
              <figure src="images/en_US/dropbox-repository-connection-configuration-save.PNG" alt="Dropbox Repository Connection, saving configuration" width="80%"/>
              <br/><br/>
              <p>When you configure a job to use the Dropbox repository connection an additional tab is presented. This is the "Dropbox Folder to Index" tab:</p>
              <br/><br/>
              <figure src="images/en_US/dropbox-repository-connection-job-dropbox-folder-to-index.PNG" alt="Dropbox Repository Connection, Dropbox Folder to Index" width="80%"/>
              <br/><br/>
              <p>The Dropbox Folder to Index tab allows you to specify the directory which the dropbox connector will index. Dropbox uses unix style paths, with
                "/" indicating the root path (and thus the entire dropbox). For example if you want to just index the Photos directory, you would specify "/Photos". </p>
              <p>Note that the Dropbox Connector during the ingestion process, for each result, when it find a folder node, it will ingest all the children of the folder node;
                otherwise it will directly ingest the document.</p>
              <p>When you are done, and you click the "Save" button, you will see a summary page looking something like this:</p>
              <br/><br/>
              <figure src="images/en_US/dropbox-repository-connection-job-save.PNG" alt="CMIS Repository Connection, saving job" width="80%"/>
              <br/><br/>
            </section>


            <section id="emailrepository">
                <title>Individual Email Repository Connection</title>
                <p>The Individual Email connection type allows you to index content from a single email account, using IMAP, IMAP-SSL, POP3, or
                    POP3-SSL email protocols.  Multiple connections are required to support multiple email accounts.</p>
                <p>This connection type provides no support at this time for securing email documents.</p>
                <p>An Email connection has the following special tabs: "Server" and "URL".  The "Server" tab allows you to describe a server and
                    email account, while the "URL" tab allows you describe a URL template that will be used to form the URL for individual emails that
                    are crawled.</p>
                <p>The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/email-configure-server.PNG" alt="Email Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>Select an email protocol, and type in the name of the email host.  Also type in the user name and password.  If the port differs from the
                    default for the selected protocol, you may enter a port as well.</p>
                <p>The "URL" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/email-configure-url.PNG" alt="Email Connection, URL tab" width="80%"/>
                <br/><br/>
                <p>Enter a URL template to be used for generating the URL for each individual email.  Use the special substitution tokens "$(FOLDERNAME)"
                    and "$(MESSAGEID)" to include the individual message's folder name and message ID in the URL, in url-encoded form.</p>
                <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/email-status.PNG" alt="Email Connection Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the email connection cannot reach the server, which is leading to an error status message instead of
                    "Connection working".</p>
                <p></p>
                <p>When you configure a job to use a repository connection of the email type, two additional tabs are presented.  These are, in order, "Metadata", and "Filter".</p>
                <p>The "Metadata" tab looks something like this:</p>
                <br/><br/>
                <figure src="images/en_US/email-job-metadata.PNG" alt="Email Job, Metadata tab" width="80%"/>
                <br/><br/>
                <p>Select any of the checkboxes to include that metadata in the crawl.</p>
                <p></p>
                <p>The "Filter" tab looks something like this:</p>
                <br/><br/>
                <figure src="images/en_US/email-job-filter.PNG" alt="Email Job, Filter tab" width="80%"/>
                <br/><br/>
                <p>Select one or more folders to include in the pulldown.  Then, if you wish to limit the documents included further by applying search criteria,
                    you may select a field, type in a search value, and click the "Add" button.  Note that <strong>all</strong> the fields must match for the
                    email to be included in the crawl.</p>
            </section>

            <section id="filenetrepository">
                <title>IBM FileNet P8 Repository Connection</title>
                <p>The IBM FileNet P8 connection type allows you to index content from a FileNet P8 server instance.  A connection allows you to reach all files
                      kept on that server.  Multiple connections are required to support multiple servers.</p>
                <p>This connection type secures documents using the Active Directory authority.  If you have not yet created an Active Directory authority, but would like your
                    documents to be secured, please follow the direction in the section titled "Active Directory Authority Connection".</p>
                <p>A FileNet connection has the following special tabs: "Server", "Object Store", "Document URL", and "Credentials".  The "Server" tab allows you to
                      connect to a specific FileNet P8 Server, while the "Object store" tab allows you to specify the desired FileNet object store.  The "Document URL"
                      tab allows you to set up the parameters of each indexed document's URL, while the "Credentials" tab allows you to specify the credentials to use
                      to access the FileNet object store.</p>
                <p>The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/filenet-configure-server.PNG" alt="FileNet Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>Select the appropriate protocol, and provide the server name, port, and service location.</p>
                <p>The "Object Store" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/filenet-configure-objectstore.PNG" alt="FileNet Connection, Object Store tab" width="80%"/>
                <br/><br/>
                <p>Type in the name of the FileNet domain you want to connect to, and the name of the FileNet object store within that domain.</p>
                <p>The "Document URL" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/filenet-configure-documenturl.PNG" alt="FileNet Connection, Document URL tab" width="80%"/>
                <br/><br/>
                <p>This tab allows you to provide the basic URL that will be how each indexed document will be loaded for the user.  Select the
                      protocol.  Type in the host name.  Type in the port.  And, type in the location.</p>
                <p>The "Credentials" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/filenet-configure-credentials.PNG" alt="FileNet Connection, Credentials tab" width="80%"/>
                <br/><br/>
                <p>Type in the FileNet user ID and password to allow the FileNet connection type access to the FileNet repository.</p>
                <p>When you are done filling in the connection information, click the "Save" button.  You should see something like this:</p>
                <br/><br/>
                <figure src="images/en_US/filenet-status.PNG" alt="FileNet Connection Status" width="80%"/>
                <br/><br/>
                <p>More here later</p>
            </section>

            <section id="filesystemrepository">
                <title>Generic WGET-Compatible File System Repository Connection</title>
                <p>The generic file system repository connection type was developed in part as an example, demonstration, and testing tool, which reads simple
                       files in directory paths, and partly as ManifoldCF support for the Unix utility called <em>wget</em>.  In the latter mode, the File System Repository Connector
                       will parse file names that were created by <em>wget</em>, or by the wget-compatible File System Output Connector, and turn these back
                       into full URL's to external web content.</p>
                <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
                <p>The File System repository connection type provides no configuration tabs beyond the standard ones.  However, please consider setting a "Maximum connections per
                       JVM" value on the "Throttling" tab to at least one per worker thread, or 30, for best performance.</p>
                <p>Jobs created using a file-system-type repository connection
                       have two tabs in addition to the standard repertoire: the "Hop Filters" tab, and the "Repository Paths" tab.</p>
                <p>The "Hop Filters" tab allows you to restrict the document set by the number of child hops from the path root.  While this is not terribly interesting in the case of a file
                       system, the same basic functionality is also used in the Web connection type, where it is a more important feature.  The file system connection type gives you a way to see
                       how this feature works, in a more predictable environment:</p>
                <br/><br/>
                <figure src="images/en_US/filesystem-job-hopcount.PNG" alt="File System Connection, Hop Filters tab" width="80%"/>
                <br/><br/>
                <p>In the case of the File System connection type, there is only one variety of relationship between documents, which is called a "child" relationship.  If you want to
                       restrict the document set by how far away a document is from the path root, enter the maximum allowed number of hops in the text box.  Leaving the box blank
                       indicates that no such filtering will take place.</p>
                <p>On this same tab, you can tell the Framework what to do should there be changes in the distance from the root to a document.  The choice "Delete unreachable
                       documents" requires the Framework to recalculate the distance to every potentially affected document whenever a change takes place.  This may require
                       expensive bookkeeping, however, so you also have the option of  ignoring such changes.  There are two varieties of this latter option - you can ignore the changes
                       for now, with the option of turning back on the aggressive bookkeeping at a later time, or you can decide not to ever allow changes to propagate, in which case
                       the Framework will discard the necessary bookkeeping information permanently.</p>
                <p>The "Repository Paths" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/filesystem-job-paths.PNG" alt="File System Connection, Repository Paths tab" width="80%"/>
                <br/><br/>
                <p>This tab allows you to type in a set of paths which function as the roots of the crawl.  For each desired path, type in the path, select whether the root should
                       behave as an WGET repository or not, and click the "Add" button to add it to the list.  The form of the path you type in obviously needs to be meaningful
                       for the operating system the Framework is running on.</p>
                <p>Each root path has a set of rules which determines whether a document is included or not in the set for the job.  Once you have added the root path to the list, you
                       may then add rules to it.  Each rule has a match expression, an indication of whether the rule is intended to match files or directories, and an action (include or exclude).
                       Rules are evaluated from top to bottom, and the first rule that matches the file name is the one that is chosen.  To add a rule, select the desired pulldowns, type in
                       a match file specification (e.g. "*.txt"), and click the "Add" button.</p>
            </section>

            <section id="genericconnector">
              <title>Generic Connector</title>
              <p>Generic connector allows you to index any source that follows provided API specification. The idea is that you can use it and implement only the API which is designed
                    to be fine grained and as simple as it is possible to handle document indexing.</p>
              <p>API should be implemented as xml web page (entry point) returning results based on provided GET params. It may be a simple server script or part of the bigger application.
                    API can be secured with HTTP basic authentication.</p>
              <br/>
              <p>There are 4 actions:</p>
              <ul>
                    <li>check</li>
                    <li>seed</li>
                    <li>items</li>
                    <li>item</li>
              </ul>
              <p>Action is passed as "action" GET param to the entrypoint.</p>
              <br/><br/>
              <p><b>[entrypoint]?action=check</b></p>
              <p>Should return HTTP status code 200 providing information that entrypoint is working properly. Any content returned will be ignored, only the status code matters.</p>
              <br/><br/>

              <p><b>[entrypoint]?action=seed&amp;startDate=YYYY-MM-DDTHH:mm:ssZ&amp;endDate=YYYY-MM-DDTHH:mm:ssZ</b></p>
              <p>Parameters:</p>
              <ul>
                    <li>startDate - the start of time frame which should be applied to returned seeds. If this is a first run - this parameter will not be provided meaning that all documents should be returned.</li>
                    <li>endDate - the end of time frame. Always provided.</li>
              </ul>
              <p><code>startDate</code> and <code>endDate</code> parameters are encoded as <code>YYYY-MM-DD'T'HH:mm:ss'Z'</code>. Result should be valid XML of form:</p>
              <source>
&lt;seeds&gt;
   &lt;seed id="document_id_1" /&gt;
   &lt;seed id="document_id_2" /&gt;
   ...
&lt;/seeds&gt;
              </source>
              <p>Attributes <code>id</code> are required.</p>
              <br/><br/>

              <p><b>[entrypoint]?action=items&amp;id[]=document_id_1&amp;id=document_id_2</b></p>
              <p>Parameters:</p>
              <ul>
                    <li>id[] - array of document IDs that should be returned</li>
              </ul>
              <p>Result should be valid XML of form:</p>
              <source>
&lt;items&gt;
   &lt;item id="document_id_1"&gt;
      &lt;url&gt;[http://document_uri]&lt;/url&gt;
      &lt;version&gt;[document_version]&lt;/version&gt;
	  &lt;created&gt;2013-11-11T21:00:00Z&lt;/created&gt;
	  &lt;updated&gt;2013-11-11T21:00:00Z&lt;/updated&gt;
	  &lt;filename&gt;filename.ext&lt;/filename&gt;
	  &lt;mimetype&gt;mime/type&lt;/mimetype&gt;
	  &lt;metadata&gt;
	     &lt;meta name="meta_name_1"&gt;meta_value_1&lt;/meta&gt;
	     &lt;meta name="meta_name_2"&gt;meta_value_2&lt;/meta&gt;
		 ...
	  &lt;/metadata&gt;
	  &lt;auth&gt;
		 &lt;token&gt;auth_token_1&lt;/token&gt;
		 &lt;token&gt;auth_token_2&lt;/token&gt;
		 ...
	  &lt;/auth&gt;
	  &lt;related&gt;
		 &lt;id&gt;other_document_id_1&lt;/id&gt;
		 &lt;id&gt;other_document_id_2&lt;/id&gt;
		 ...
	  &lt;/related&gt;
	  &lt;content&gt;Document content&lt;/content&gt;
   &lt;/item&gt;
   ...
&lt;/items&gt;
              </source>
              <p><code>id, url, version</code> are required, the rest is optional.</p>
              <p>If <code>auth</code> tag is provided - document will be treated as non-public with defined access tokens, if it is ommited - document will be public.</p>
              <p>If <code>content</code> tag is ommited - connector will ask for document content as <code>action=item</code> separate API call.</p>
              <p>You may provide related document ids when document repository is a graph or tree. Provided documents will also be indexed. In case you want to use relations -
                  seeding do not have to return all documents, only starting points. Rest of documents will be fetched using relations.</p>
              <br/><br/>

              <p><b>[entrypoint]?action=item&amp;id=document_id</b></p>
              <p>Parameters:</p>
              <ul>
                    <li>id - requested document ID</li>
              </ul>
              <p>Result should be the document content. It does not have to be XML - you may return binary data (PDF, DOC, etc) which represent the document.</p>
              <br/><br/>
              <p>You may provide custom parameters by defining them in Job specification. All defined parameters will be sent as additional GET parameters with every API call</p>
              <p>You may override provided auth tokens and define forced tokens in Job specification. If you change security model to "forced" and do not provide any tokens - all documents will be public.</p>
              <br/><br/>
            </section>

            <section id="jdbcrepository">
                <title>Generic Database Repository Connection</title>
                <p>The generic database connection type allows you to index content from a database table, served by one of the following databases:</p>
                <br/>
                <ul>
                    <li>Postgresql (via a Postgresql JDBC driver)</li>
                    <li>SQL Server (via the JTDS JDBC driver)</li>
                    <li>Oracle (via the Oracle JDBC driver)</li>
                    <li>Sybase (via the JTDS JDBC driver)</li>
                    <li>MySQL (via the MySQL JDBC driver)</li>
                </ul>
                <br/>
                <p>This connection type <b>cannot</b> be configured to work with other databases than the ones listed above without software changes.  Depending on your particular installation,
                       some of the above options may not be available.</p>
                <p>The generic database connection type currently has no per-document notion of security.  It is possible to set document security for all documents specified by a
                       given job.  Since this form of security requires you to know what the actual access tokens are, you must have detailed knowledge of the authority connection you
                       intend to use, and what sorts of access tokens it produces.</p>
                <p>A generic database connection has three special tabs on the repository connection editing screen: the "Database Type" tab, the "Server" tab, and the
                       "Credentials" tab.  The "Database Type" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-configure-database-type.PNG" alt="Generic Database Connection, Database Type tab" width="80%"/>
                <br/><br/>
                <p>Select the kind of database you want to connect to, from the pulldown.</p>
                <p>Also, select the JDBC access method you want from the access method pulldown.  The access method is provided because the JDBC specification has been
                    recently clarified, and not all JDBC drivers work the same way as far as resultset column name discovery is concerned.  The "by name" option currently works
                    with all JDBC drivers in the list except for the MySQL driver.  The "by label" works for the current MySQL driver, and may work for some of the others as well.  If
                    the queries you supply for your generic database jobs do not work correctly, and you see an error message about not being able to find required columns in the
                    result, you can change your selection on this pulldown and it may correct the problem.</p>
                <p>The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-configure-server.PNG" alt="Generic Database Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>Here you have a choice.  <strong>Either</strong> you can choose to specify the database host and port, and the database name or instance name,
                      <strong>or</strong> you can provide a raw JDBC connection string that is appropriate for the database type you have chosen.  This latter option
                      is provided because many JDBC drivers, such as Oracle's, now can connect to an entire cluster of Oracle servers if you specify the appropriate
                      connection description string.</p>
                <p>If you choose the second option, just consult your JDBC driver's documentation and supply your string.  If there is anything entered in the raw connection
                      string field at all, it will take precedence over the database host and database name fields.</p>
                <p>If you choose the first option, the server name and port must be provided in the "Database host and port" field.  For example, for Oracle, the standard
                      Oracle installation uses port 1521, so you would enter something like, "my-oracle-server:1521" for this field.  Postgresql uses port 5432 by default, so
                      "my-postgresql-server:5432" would be required.  SQL Server's standard port is 1433, so use "my-sql-server:1433".</p>
                <p>The service name or instance name field describes which instance and database to connect to.  For Oracle or Postgresql, provide just the database name.
                      For SQL Server, use "my-instance-name/my-database-name".  For SQL Server using the default instance, use just the database name.</p>
                <p>The "Credentials" tab is straightforward:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-configure-credentials.PNG" alt="Generic Database Connection, Credentials tab" width="80%"/>
                <br/><br/>
                <p>Enter the database user credentials.</p>
                <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-status.PNG" alt="Generic Database Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the generic database connection is not properly authenticated, which is leading to an error status message instead of "Connection working".</p>
                <p></p>
                <p>When you configure a job to use a repository connection of the generic database type, several additional tabs are presented.  These are, in order, "Queries", and "Security".</p>
                <p>The "Queries" tab looks something like this:</p>
                <br/><br/>
                <figure src="images/en_US/jdbc-job-queries.PNG" alt="Generic Database Job, Queries tab" width="80%"/>
                <br/><br/>
                <p>You must supply at least two queries.  (All other queries are optional.)  The purpose of these queries is to obtain the data needed for the database to be properly crawled.
                       But in order for you to write these queries, you must make some decisions first.  Basically, you need to figure out how best to map the constructs within your database
                       to the requirements of the Framework.  The following are the sorts of queries you can provide:</p>
                <br/>
                <ul>
                    <li>Obtain a list of document identifiers corresponding to changes and additions that occurred within a specified time window (see below)</li>
                    <li>Given a set of document identifiers, find the corresponding version strings (see below)</li>
                    <li>Given a set of document identifiers, find the corresponding list of access tokens for each document identifier (see below)</li>
                    <li>Given a set of document identifiers, find information about the document, consisting of the document's data, access URL, and metadata</li>
                    <li>Given a set of document identifiers, find multivalued metadata from the document (multiple such queries)</li>
                </ul>
                <br/>
                <p>The Framework uses a unique document identifier to describe every document within the confines of a defined repository connection.  This document identifier is used
                       as a primary key to locate information about the document.  When you set up a generic-database-type job, the database you are connecting to must have a similar
                       concept.  If you pick the wrong thing for a document identifier, at the very least you could find that the crawler runs very slowly.</p>
                <p>Obtaining the list of document identifiers that represents the changes that occurred over the given time frame must return <b>at least</b> all such changes.  It is
                        acceptable (although not ideal) for the returned list to be bigger than that.</p>
                <p>If you want your database connection to function in an incremental manner, you must also come up with the format of a "version string".  This string is used by the
                       Framework to determine if a document has changed.  It must change whenever anything that might affect the document's indexing changes.  (It is not a problem if
                       it changes for other reasons, as long as it fulfills that principle criteria.)</p>
                <p>The queries you provide get substituted before they are used by the connection.  The example queries, which are present when the queries tab is first opened for a
                       new job, show many of these substitutions in roughly the manner in which they are intended to be used.  For example, "$(IDCOLUMN)" will substitute a column
                       name expected by the connection to contain the document identifier into the query.  The list of substitution strings are as follows:</p>
                <br/>
                <table>
                    <tr><td><b>String name</b></td><td><b>Meaning/use</b></td></tr>
                    <tr><td>IDCOLUMN</td><td>The name of an expected resultset column containing a document identifier</td></tr>
                    <tr><td>VERSIONCOLUMN</td><td>The name of an expected resultset column containing a version string</td></tr>
                    <tr><td>TOKENCOLUMN</td><td>The name of an expected resultset column containing an access token</td></tr>
                    <tr><td>URLCOLUMN</td><td>The name of an expected resultset column containing a URL</td></tr>
                    <tr><td>DATACOLUMN</td><td>The name of an expected resultset column containing document data</td></tr>
                    <tr><td>STARTTIME</td><td>A query string value containing a start time in milliseconds since epoch</td></tr>
                    <tr><td>ENDTIME</td><td>A query string value containing an end time in milliseconds since epoch</td></tr>
                    <tr><td>IDLIST</td><td>A query string value containing a parenthesized list of document identifier values</td></tr>
                </table>
                <br/>
                <p>It is often necessary to construct composite values using SQL query operators in order to create the version strings, URLs,
                      and data which the JDBC connection type needs.  Each database has its own caveats in this regard.  Consult your database
                      manual to be sure you are constructing your queries in a manner consistent with best practices for that database.  For example,
                      for MySQL databases, NULL column values will prevent straightforward concatenation of results.  You might expect the following
                      to work:</p>
                <br/>
                <p><code>SELECT id AS $(IDCOLUMN), CONCAT("http://my.base.url/show.html?record=", id) AS $(URLCOLUMN),
                      CONCAT(name, " ", description, " ", what_ever) AS $(DATACOLUMN)
                      FROM accounts WHERE id IN $(IDLIST)</code></p>
                <br/>
                <p>But, any NULL column values will disrupt the concatenation in MySQL, so you must instead write your query like this:</p>
                <br/>
                <p><code>SELECT id AS $(IDCOLUMN), CONCAT("http://my.base.url/show.html?record=", id) AS $(URLCOLUMN),
                      CONCAT(name, " ", IFNULL(description, ""), " ", IFNULL(what_ever, "")) AS $(DATACOLUMN)
                      FROM accounts WHERE id IN $(IDLIST)</code></p>
                <br/>
                <p>Also, use caution when constructing queries that include time-based
                        components. "$(STARTTIME)" and "$(ENDTIME)" provide
                        times in milliseconds since epoch. If the modified date field is not
                        in this unit, the seeding query may not select the desired document
                        identifiers. You should convert "$(STARTTIME)" and
                        "$(ENDTIME)" to the appropriate timestamp unit for your system within your query.
                        The following table gives several sample query fragments that can be
                        used to convert the helper strings "$(STARTTIME)" and
                        "$(ENDTIME)" into other date and time types. The first column names
                        the SQL database type that the following query phrase corresponds to,
                        the second column names the output data type for the query phrase, and
                        the third gives the query phrase itself using "$(STARTTIME)"
                        as an example time in milliseconds since epoch. These query phrases
                        are intended as guidelines for creating an appropriate query phrase in
                        each language. Each query phrase is designed to work with the most
                        current version of the database software available at the time of
                        publishing for this document. If your modified date field is not of
                        the type given in the second column, the query phrase may not provide
                        an appropriate output for date comparisons.</p>
                <br/>
                <table>
                    <tr><td><b>Database Type</b></td><td><b>Date Type</b></td><td><b>Sample Query Phrase</b></td></tr>
                    <tr><td>Oracle</td><td>date</td><td><code>TO_DATE ( '1970/01/01:00:00:00', 'yyyy/mm/dd:hh:mi:ss') + ROUND ($(STARTTIME)/86400000)</code></td></tr>
                    <tr><td>Oracle</td><td>timestamp</td><td><code>TO_TIMESTAMP('1970-01-01 00:00:00') + interval '$(STARTTIME)/1000' second</code></td></tr>
                    <tr><td>Postgres SQL</td><td>timestamp</td><td><code>date '1970-01-01' + interval '$(STARTTIME) milliseconds'</code></td></tr>
                    <tr><td>MS SQL Server ($>$6.5)</td><td>datetime</td><td><code>DATEADD(ms, $(STARTTIME), '19700101')</code></td></tr>
                    <tr><td>Sybase (10+)</td><td>datetime</td><td><code>DATEADD(ms, $(STARTTIME), '19700101')</code></td></tr>
                </table>
                <br/>
                <p>When you create a job based on a general database connection, the job's queries are initially populated with examples.  These examples should give you a good idea of
                        what columns your queries should return - in most cases, the only columns you need to return are the ones that appear in the example queries.  However,
                        for the file data query, you may also return columns that are not specified in the example.  <strong>When you do this, the extra return column values will be passed
                        to the index as metadata for the document.  The metadata name used will be the corresponding resultlist column name of the resultset.</strong></p>
                <p>For example, the following file data query (written for PostgreSQL) will return documents with the metadata fields "metadata_a" and "metadata_b", in addition to the required primary
                        document body and URL:</p>
                <br/>
                <p><code>SELECT id AS $(IDCOLUMN), characterdata AS $(DATACOLUMN), 'http://mydynamicserver.com?id=' || id AS $(URLCOLUMN),
                  publisher AS metadata_a, distributor AS metadata_b FROM mytable WHERE id IN $(IDLIST)</code></p>
                <br/>
                <p>The "Security" tab simply allows you to add specific access tokens to all documents indexed with a general database job.  In order for you to know what tokens
                       to add, you must decide with what authority connection these documents will be secured, and understand the form of the access tokens used by that authority connection
                       type.  This is what the "Security" tab looks like:</p>
                <br/>
                <br/>
                <figure src="images/en_US/jdbc-job-security.PNG" alt="Generic Database Job, Security tab" width="80%"/>
                <br/><br/>
                <p>Here, you can turn off security, if you want no access tokens to be transmitted with each document.  Or, you can leave security "Enabled", and either create a list of access tokens
                      by hand, using the widget on this tab, or leave these blank and provide an access token query on the "Queries" tab.  To add access tokens by hand, enter a desired access token, and
                      click the "Add" button.  You may enter multiple access tokens.</p>
            </section>

            <section id="googledriverepository">
              <title>Google Drive Repository Connection</title>
              <p>The Google Drive Repository Connection type allows you to index content from <a href="https://drive.google.com">Google Drives</a>.</p>
              <p>Each Google Drive Connection manages access to a single drive repository. This means that if you have multiple Google Drives (i.e. different users),
                you need to create a specific connection for each drive repository and provide the associated authentication information.</p>
              <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
              <p>This connection type can index only those documents whose binary content can be obtained through the pertinent Google APIs.  At the moment,
                  native Google documents such as Google Spreadsheet do not appear to be supported.</p>
              <br/>
              <p>A Google Drive connection has the following configuration parameters on the repository connection editing screen:</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-connection-configuration.PNG" alt="googledrive Repository Connection, configuration parameters" width="80%"/>
              <br/><br/>
              <p>As we can see there are 3 pieces of information which are needed to create a successful connection. The Client ID and Client Secret given by
                Google Drive when you register your application for a development license. This is typically done through
                the <a href="https://code.google.com/apis/console/b/0/">Google APIs Console</a>.</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-setup-1.PNG" alt="googledrive create project" width="80%"/>
              <br/><br/>
              <p>Once having created a project, we must enable the Google Drive API:</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-setup-2.PNG" alt="googledrive enable drive api" width="80%"/>
              <br/><br/>
              <p>Then going to the API Access link on the right side, we need to select create an OAuth 2.0 client ID:</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-setup-3.PNG" alt="googledrive create oauth client" width="80%"/>
              <br/><br/>
              <p>After filling in the necessary information, we need to select what type of application we'd like. For our purposes we need to select
                installed application:</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-setup-4.PNG" alt="googledrive create client id" width="80%"/>
              <br/><br/>
              <p>Afterwards the connector requests our Client ID and Client secrets (where the red boxes are):</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-setup-5.PNG" alt="googledrive client id and secret" width="80%"/>
              <br/><br/>
              <p>Now each user must confirm their acceptance of allowing your application to access their google drive. This is done through a run-of-the-mill OAUTH
                approach, but needs to be done beforehand. Once the steps are completed, a long-life refresh token is presented, which is then used by the connector.
                For completeness, we present the needed steps below since they require some manual work.</p>
              <br/><br/>
              <ol>
                  <li>Browse to here: https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly&amp;state=%2Fprofile&amp;redirect_uri=https%3A%2F%2Flocalhost&amp;response_type=code&amp;client_id=&lt;CLIENT_ID&gt;&amp;approval_prompt=force&amp;access_type=offline</li>
                  <li>This returns a link (after acceptance), where a code is embedded in the URL: https://localhost/?state=/profile&amp;code=&lt;CODE&gt;</li>
                  <li>Use a tool like <em>curl</em> (<a href="http://curl.haxx.se">http://curl.haxx.se</a>) to perform a POST to "https://accounts.google.com/o/oauth2/token", using the body: grant_type=authorization_code&amp;redirect_uri=https%3A%2F%2Flocalhost&amp;client_secret=&lt;CLIENT_SECRET&gt;&amp;client_id=&lt;CLIENT_ID&gt;&amp;code=&lt;CODE&gt;</li>
              <li> The response is then a json response which contains the refresh_token.</li>
              </ol>
              <br/><br/>
              <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-connection-configuration-save.PNG" alt="googledrive Repository Connection, saving configuration" width="80%"/>
              <br/><br/>
              <p>When you configure a job to use the Google Drive repository connection an additional tab is presented. This is the "Google Drive Seed Query" tab:</p>
              <br/><br/>
              <figure src="images/en_US/googledrive-repository-connection-job-googledrive-seed-query.PNG" alt="googledrive Repository Connection, seed query" width="80%"/>
              <br/><br/>
              <p>This tab allows you to specify the query which will be used to seed documents for the indexing process. The query language is
                specified on the <a href="https://developers.google.com/drive/search-parameters">Drive Search Parameters</a> site. Directories
                which meet the seed query are fully crawled as the query on applies to seeds. The default query indexes the entire drive. Lastly, native Google
                documents such as spreadsheets and word documents are exported to PDF and then ingested.</p>
            </section>

            <section id="hdfsrepository">
                <title>HDFS Repository Connection (WGET compatible)</title>
                <p>The HDFS repository connection operates much like the File System Repository Connection, except it reads data from the Hadoop File System rather than a
                       local disk.  It, too, is capable of understanding directories written in the manner of the Unix utility called <em>wget</em>.  In the latter mode, the HDFS Repository Connector
                       will parse file names that were created by <em>wget</em>, or by the wget-compatible HDFS Output Connector, and turn these back
                       into full URL's pointing to external web content.</p>
                <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
                <p>The HDFS repository connection type has an additional configuration tab above and beyond the standard ones, called "Server".  This is what it looks like:</p>
                <br/><br/>
                <figure src="images/en_US/hdfs-repository-configure-server.PNG" alt="HDFS Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>Enter the HDFS name node URI, and the user name, and click the "Save" button.</p>
                <p>Jobs created using an HDFS repository connection type
                       have two tabs in addition to the standard repertoire: the "Hop Filters" tab, and the "Repository Paths" tab.</p>
                <p>The "Hop Filters" tab allows you to restrict the document set by the number of child hops from the path root.  This is what it looks like:</p>
                <br/><br/>
                <figure src="images/en_US/hdfs-job-hopcount.PNG" alt="HDFS Connection, Hop Filters tab" width="80%"/>
                <br/><br/>
                <p>In the case of the HDFS connection type, there is only one variety of relationship between documents, which is called a "child" relationship.  If you want to
                       restrict the document set by how far away a document is from the path root, enter the maximum allowed number of hops in the text box.  Leaving the box blank
                       indicates that no such filtering will take place.</p>
                <p>On this same tab, you can tell the Framework what to do should there be changes in the distance from the root to a document.  The choice "Delete unreachable
                       documents" requires the Framework to recalculate the distance to every potentially affected document whenever a change takes place.  This may require
                       expensive bookkeeping, however, so you also have the option of  ignoring such changes.  There are two varieties of this latter option - you can ignore the changes
                       for now, with the option of turning back on the aggressive bookkeeping at a later time, or you can decide not to ever allow changes to propagate, in which case
                       the Framework will discard the necessary bookkeeping information permanently.</p>
                <p>The "Repository Paths" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/hdfs-job-paths.PNG" alt="HDFS Connection, Repository Paths tab" width="80%"/>
                <br/><br/>
                <p>This tab allows you to type in a set of paths which function as the roots of the crawl.  For each desired path, type in the path, select whether the root should
                       behave as an WGET repository or not, and click the "Add" button to add it to the list.</p>
                <p>Each root path has a set of rules which determines whether a document is included or not in the set for the job.  Once you have added the root path to the list, you
                       may then add rules to it.  Each rule has a match expression, an indication of whether the rule is intended to match files or directories, and an action (include or exclude).
                       Rules are evaluated from top to bottom, and the first rule that matches the file name is the one that is chosen.  To add a rule, select the desired pulldowns, type in
                       a match file specification (e.g. "*.txt"), and click the "Add" button.</p>
            </section>

            <section id="jirarepository">
              <title>Jira Repository Connection</title>
              <p>The Jira Repository Connection type allows you to index tickets from <a href="http://www.atlassian.com/‎">Atlassian</a>'s <a href="http://www.atlassian.com/software/jira">Jira</a>.</p>
              <p>This repository connection type is meant to secure documents in conjunction with the Jira Authority Connection type.  Please read the associated
                    documentation to configure document security.</p>
              <p>A Jira connection has the following configuration parameters on the repository connection editing screen:</p>
              <br/><br/>
              <figure src="images/en_US/jira-repository-connection-configuration.PNG" alt="jira Repository Connection, configuration parameters" width="80%"/>
              <br/><br/>
              <p>As we can see there are 3 pieces of information which are needed to create a successful connection. The Client ID and Client Secret
                are the username and password of a Jira account. The JiraUrl is the base endpoint of the particular Jira Instance, for example:
                https://searchbox.atlassian.net is the Jira version for searchbox which is hosted at Atlassian.</p>
              <br/><br/>
              <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
              <br/><br/>
              <figure src="images/en_US/jira-repository-connection-configuration-save.PNG" alt="jira Repository Connection, saving configuration" width="80%"/>
              <br/><br/>
              <p>When you configure a job to use the Jira repository connection an additional tab is presented. This is the "Seed Query" tab:</p>
              <br/><br/>
              <figure src="images/en_US/jira-repository-connection-job-jira-seed-query.PNG" alt="jira Repository Connection, seed query" width="80%"/>
              <br/><br/>
              <p>This tab allows you to specify the query which will be used to find documents for the indexing process. The query language is
                specified on the <a href="https://confluence.atlassian.com/display/JIRA/Advanced+Searching">Jira Advanced Searching</a> site. Directories
                which meet the seed query are fully crawled as the query only applies to seeds.</p>
            </section>

            <section id="livelinkrepository">
                <title>OpenText LiveLink Repository Connection</title>
                <p>The LiveLink connection type allows you to index content from LiveLink repositories.  LiveLink has a rich variety of different document types and metadata,
                    which include basic documents, as well as compound documents, folders, workspaces, and projects.  A LiveLink connection is able to discover documents
                    contained within all of these constructs.</p>
                <p>Documents described by LiveLink connections are typically secured by a LiveLink authority.  If you have not yet created a LiveLink authority, but would
                    like your documents to be secured, please follow the direction in the section titled "OpenText LiveLink Authority Connection".</p>
                <p>A LiveLink connection has the following special tabs: "Server", "Document Access", and "Document View".  The "Server" tab allows you to select a
                    LiveLink server to connect to, and also to provide appropriate credentials.  The "Document Access" tab describes the location of the LiveLink web interface,
                    relative to the server, that will be used to fetch document content from LiveLink. The "Document View" tab affects how URLs to the fetched documents
                    are constructed, for viewing results of searches.</p>
                <p>The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-connection-server.PNG" alt="LiveLink Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>Select the manner you want the connection to use to communicate with LiveLink.  Your options are:</p>
                <ul>
                  <li>Internal (native LiveLink protocol)</li>
                  <li>HTTP (communication with LiveLink through the IIS web server)</li>
                  <li>HTTPS (communication with LiveLink through IIS using SSL)</li>
                </ul>
                <p>Also, you need to enter the name of the desired LiveLink server, the LiveLink port, and the LiveLink server credentials.  If you have selected communication
                    using HTTP or HTTPS, you must provide a relative CGI path to your LiveLink.  You may also need to provide web server credentials.  Basic authentication
                    and older forms of NTLM are supported.  In order to use NTLM, specify a non-blank server domain name in the "Server HTTP domain" field, plus a non-
                    qualified user name and password.  If basic authentication is desired, leave the "Server HTTP domain" field blank, and provide basic auth credentials in the
                    "Server HTTP NTLM user name" and "Server HTTP NTLM password" fields.  For no web server authentication, leave these fields all blank.</p>
                <p>For communication using HTTPS, you will also need to upload your authority certificate(s) on the "Server" tab, to tell the connection which certificates to
                    trust.  Upload your certificate using the browse button, and then click the "Add" button to add it to the trust store.</p>
                <p>The "Document Access" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-connection-document-access.PNG" alt="LiveLink Connection, Document Access tab" width="80%"/>
                <br/><br/>
                <p>The server name is presumed to be the same as is on the "Server" tab.  Select the desired protocol for document retrieval.  If your LiveLink server
                    is using a non-standard HTTP port for the specified protocol for document retrieval, enter the port number.  If your LiveLink server is using NTLM
                    authentication to access documents, enter an Active Directory user name, password, and domain.  If your LiveLink is using HTTPS, browse locally
                    for the appropriate certificate authority certificate, and click "Add" to upload that certificate to the connection's trust store.  (You may also use the server's
                    certificate, but that is less resilient because the server's certificate may be changed periodically.)</p>
                <p>The "Document View" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-connection-document-view.PNG" alt="LiveLink Connection, Document Viewtab" width="80%"/>
                <br/><br/>
                <p>If you want each document's view URL to be the same as its access URL, you can leave this tab unchanged.  If you want to direct users to a different
                    CGI path when they view search results, you can specify that here.</p>
                <p>When you are done, click the "Save" button.  You will see a summary screen that looks something like this:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-connection-status.PNG" alt="LiveLink Connection Status" width="80%"/>
                <br/><br/>
                <p>Make note of and correct any reported connection errors.  In this example, the connection has been correctly set up, so the connection status is
                    "Connection working".</p>
                <p></p>
                <p>A job created to use a LiveLink connection has the following additional tabs associated with it: "Paths", "Filters", "Security", and "Metadata".</p>
                <p>The "Paths" tab allows you to manage a list of LiveLink paths that act as starting points for indexing content:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-job-paths.PNG" alt="LiveLink Job, Paths tab" width="80%"/>
                <br/><br/>
                <p>Build each path by selecting from the available dropdown, and clicking the "+" button.  When your path is complete, click the "Add" button to add the path
                    to the list of starting points.</p>
                <p>The "Filters" tab controls the criteria the LiveLink job will use to include or exclude content.  The filters are basically a list of rules.  Each rule has a
                    document match field, and a matching action ("Include" or "Exclude").  When a LiveLink connection encounters a document, it evaluates the rules from
                    top to bottom.  If the rule matches, then it will be included or excluded from the job's document set depending on what you have selected for the
                    matching action. A rule's match field specifies a character match, where "*" will match any number of characters, and "?" will match any single character.</p>
                <br/><br/>
                <figure src="images/en_US/livelink-job-filters.PNG" alt="LiveLink Job, Filters tab" width="80%"/>
                <br/><br/>
                <p>Enter the match field value, select the match action, and click the "Add" button to add to the list of filters.</p>
                <p>The "Security" tab allows you to disable (or enable) LiveLink security for the documents associated with this job:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-job-security.PNG" alt="LiveLink Job, Security tab" width="80%"/>
                <br/><br/>
                <p>If you disable security, you can add your own access tokens to all
                    jobs in the document set as they are indexed.  The format of the access tokens you would enter depends on the governing authority associated with the
                    job's repository connection. Enter a token and click the "Add" button to add it to the list.</p>
                <p>The "Metadata" tab allows you to select what specific metadata values from LiveLink you want to pass to the index:</p>
                <br/><br/>
                <figure src="images/en_US/livelink-job-metadata.PNG" alt="LiveLink Job, Metadata tab" width="80%"/>
                <br/><br/>
                <p>If you want to pass all available LiveLink metadata to the index, then click the "All metadata" radio button.  Otherwise, you need to build LiveLink
                    metadata paths and add them to the metadata list. Select the next metadata path segment, and click the appropriate "+" button to add it to the path.
                    You may add folder information, or a metadata category, at any point.</p>
                <p>Once you have drilled down to a metadata category, you can select the metadata attributes to include, or check the "All attributes in this category"
                    checkbox.  When you are done, click the "Add" button to add the metadata attributes that you want to include in the index.</p>
                <p>You can also use the "Metadata" tab to have the connection send path data along with each document, as a piece of document metadata.  To enable
                    this feature, enter the name of the metadata attribute you want this information to be sent into the "Path attribute name" field.  Then, add the rules you
                    want to the list of rules.  Each rule has a match expression, which is a regular expression where parentheses ("(" and ")") mark sections you are
                    interested in.  These sections are called "groups" in regular expression parlance.  The replace string consists of constant text plus
                    substitutions of the groups from the match, perhaps modified.  For example, "$(1)" refers to the first group within the match, while "$(1l)" refers to the
                    first match group mapped to lower case.  Similarly, "$(1u)" refers to the same characters, but mapped to upper case.</p>
                <p>For example, suppose you had a rule which had ".*/(.*)/(.*)/.*" as a match expression, and "$(1) $(2)" as the replace string.  If presented with the path
                    <code>Project/Folder_1/Folder_2/Filename</code>, it would output the string <code>Folder_1 Folder_2</code>.</p>
                <p>If more than one rule is present, the rules are all executed in sequence.  That is, the output of the first rule is modified by the second rule, etc.</p>
            </section>

            <section id="meridiorepository">
                <title>Autonomy Meridio Repository Connection</title>
                <p>An Autonomy Meridio connection allows you to index documents from a set of Meridio servers.  Meridio's architecture allows you to separate services on multiple machines -
                    e.g. the document services can run on one machine, and the records services can run on another.  A Meridio connection type correspondingly is configured to describe each
                    Meridio service independently.</p>
                <p>Documents described by Meridio connections are typically secured by a Meridio authority.  If you have not yet created a Meridio authority, but would like your
                    documents to be secured, please follow the direction in the section titled "Autonomy Meridio Authority Connection".</p>
                <p>A Meridio connection has the following special tabs on the repository connection editing screen: the "Document Server" tab, the "Records Server" tab, the "Web Client" tab,
                    and the "Credentials" tab.  The "Document Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-connection-document-server.PNG" alt="Meridio Connection, Document Server tab" width="80%"/>
                <br/><br/>
                <p>Select the correct protocol, and enter the correct server name, port, and location to reference the Meridio document server services.  If a proxy is involved, enter the proxy host
                    and port.  Authenticated proxies are not supported by this connection type at this time.</p>
                <p>Note that, in the Meridio system, while it is possible that different services run on different servers, this is not typically the case.  The connection type, on the other hand, makes
                    no assumptions, and permits the most general configuration.</p>
                <p>The "Records Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-connection-records-server.PNG" alt="Meridio Connection, Records Server tab" width="80%"/>
                <br/><br/>
                <p>Select the correct protocol, and enter the correct server name, port, and location to reference the Meridio records server services.  If a proxy is involved, enter the proxy host
                    and port.  Authenticated proxies are not supported by this connection type at this time.</p>
                <p>Note that, in the Meridio system, while it is possible that different services run on different servers, this is not typically the case.  The connection type, on the other hand, makes
                    no assumptions, and permits the most general configuration.</p>
                <p>The "Web Client" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-connection-web-client.PNG" alt="Meridio Connection, Web Client tab" width="80%"/>
                <br/><br/>
                <p>The purpose of the Meridio Connection web client tab is to allow the connection to build a useful URL for each document it indexes.
                    Select the correct protocol, and enter the correct server name, port, and location to reference the Meridio web client service.  No proxy information is required, as no documents
                    will be fetched from this service.</p>
                <p>The "Credentials" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-connection-credentials.PNG" alt="Meridio Connection, Credentials tab" width="80%"/>
                <br/><br/>
                <p>Enter the Meridio server credentials needed to access the Meridio system.</p>
                <p>When you are done, click the "Save" button to save the connection.  You will see a summary screen, looking something like this:</p>
                <br/><br/>
                <figure src="images/en_US/meridio-connection-status.PNG" alt="Meridio Connection Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the Meridio connection is not actually correctly configured, which is leading to an error status message instead of "Connection working".</p>
                <p>Since Meridio uses Windows IIS for authentication, there are many ways in which the configuration of either IIS or the Windows domain under which Meridio runs can affect
                    the correct functioning of the Meridio connection.  It is beyond the scope of this manual to describe the kinds of analysis and debugging techniques that might be required to diagnose connection
                    and authentication problems.  If you have trouble, you will almost certainly need to involve your Meridio IT personnel.  Debugging tools may include (but are not limited to):</p>
                <br/>
                <ul>
                    <li>Windows security event logs</li>
                    <li>ManifoldCF logs (see below)</li>
                    <li>Packet captures (using a tool such as WireShark)</li>
                </ul>
                <br/>
                <p>If you need specific ManifoldCF logging information, contact your system integrator.</p>
                <p></p>
                <p>Jobs based on Meridio connections have the following special tabs: "Search Paths", "Content Types", "Categories", "Data Types", "Security", and "Metadata".</p>
                <p>More here later</p>
            </section>

            <section id="rssrepository">
                <title>Generic RSS Repository Connection</title>
                <p>The RSS connection type is specifically designed to crawl RSS feeds.  While the Web connection type can also extract links from RSS feeds, the RSS connection type
                       differs in the following ways:</p>
                <br/>
                <ul>
                    <li>Links are <b>only</b> extracted from feeds</li>
                    <li>Feeds themselves are not indexed</li>
                    <li>There is fine-grained control over how often feeds are refetched, and they are treated distinctly from documents in this regard</li>
                    <li>The RSS connection type knows how to carry certain data down from the feeds to individual documents, as metadata</li>
                </ul>
                <br/>
                <p>Many users of the RSS connection type set up their jobs to run continuously, configuring their jobs to never refetch documents, but rather to expire them after some 30 days.
                       This model works reasonably well for news, which is what RSS is often used for.</p>
                <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
                <p>An RSS connection has the following special tabs: "Email", "Robots", "Bandwidth", and "Proxy".  The "Email" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-configure-email.PNG" alt="RSS Connection, Email tab" width="80%"/>
                <br/><br/>
                <p>Enter an email address.  This email address will be included in all requests made by the RSS connection, so that webmasters can report any difficulties that their
                       sites experience as the result of improper throttling, etc.</p>
                <p>This field is mandatory.  While an RSS connection makes no effort to validate the correctness of the email
                       field, you will probably want to remain a good web citizen and provide a valid email address.  Remember that it is very easy for a webmaster to block access to
                       a crawler that does not seem to be behaving in a polite manner.</p>
                <p>The "Robots" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-configure-robots.PNG" alt="RSS Connection, Robots tab" width="80%"/>
                <br/><br/>
                <p>Select how the connection will interpret robots.txt.  Remember that you have an interest in crawling people's sites as politely as is possible.</p>
                <p>The "Bandwidth" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-configure-bandwidth.PNG" alt="RSS Connection, Bandwidth tab" width="80%"/>
                <br/><br/>
                <p>This tab allows you to control the <b>maximum</b> rate at which the connection fetches data, on a per-server basis, as well as the <b>maximum</b> fetches
                       per minute, also per-server.  Finally, the maximum number of socket connections made per server at any one time is also controllable by this tab.</p>
                <p>The screen shot displays parameters that are considered reasonably polite.  The default values for this table are all blank, meaning that, by default, there is no
                       throttling whatsoever!  Please do not make the mistake of crawling other people's sites without adequate politeness parameters in place.</p>
                <p>The "Throttle group" parameter allows you to treat multiple RSS-type connections together, for the purposes of throttling.  All RSS-type connections that
                       have the same throttle group name will use the same pool for throttling purposes.</p>
                <p>The "Bandwidth" tab is related to the throttles that you can set on the "Throttling" tab in the following ways:</p>
                <br/>
                <ul>
                    <li>The "Bandwidth" tab sets the <b>maximum</b> values, while the "Throttling" tab sets the <b>average</b> values.</li>
                    <li>The "Bandwidth" tab does not affect how documents are scheduled in the queue; it simply blocks documents until it is safe to go ahead, which will use up a
                          crawler thread for the entire period that both the wait and the fetch take place.  The "Throttling" tab affects how often documents are scheduled, so it does
                          not waste threads.</li>
                </ul>
                <br/>
                <p>Because of the above, we suggest that you configure your RSS connection using <b>both</b> the "Bandwidth" <b>and</b> the "Throttling" tabs.  Select maximum
                       values on the "Bandwidth" tab, and corresponding average values estimates on the "Throttling" tab.  Remember that a document identifier for an RSS connection is the
                       document's URL, and the bin name for that URL is the server name.  Also, please note that the "Maximum number of connections per JVM" field's default value
                       of 10 is unlikely to be correct for connections of the RSS type; you should have at least one available connection per worker thread, for best performance.  Since the
                       default number of worker threads is 30, you should set this parameter to at least a value of 30 for normal operation.</p>
                <p>The "Proxy" tab allows you to specify a proxy that you want to crawl through.  The RSS connection type supports proxies that are secured with all forms of the NTLM
                       authentication method.  This is quite typical of large organizations.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-configure-proxy.PNG" alt="RSS Connection, Proxy tab" width="80%"/>
                <br/><br/>
                <p>Enter the proxy server you will be proxying through in the "Proxy host" field.  Enter the proxy port in the "Proxy port" field.  If your server is authenticated, enter the
                       domain, username, and password in the corresponding fields.  Leave all fields blank if you want to use no proxy whatsoever.</p>
                <p>When you save your RSS connection, you should see a status screen that looks something like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-status.PNG" alt="RSS Status" width="80%"/>
                <br/><br/>
                <p></p>
                <p>Jobs created using connections of the RSS type have the following additional tabs: "URLs", "Canonicalization", "URL mappings", "Exclusions", "Time Values",
                       "Security", "Metadata", and "Dechromed Content".  The URLs tab is where you describe the feeds that are part of the job.  It looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-job-urls.PNG" alt="RSS job, URLs tab" width="80%"/>
                <br/><br/>
                <p>Enter the list of feed URLs you want to crawl, separated by newlines.  You may also have comments by starting lines with ("#") characters.</p>
                <p>The "Canonicalization" tab controls how the job handles url canonicalization.  Canonicalization refers to the fact that many different URLs may all refer to the
                       same actual resource.  For example, arguments in URLs can often be reordered, so that <code>a=1&amp;b=2</code> is in fact the same as
                       <code>b=2&amp;a=1</code>.  Other canonical operations include removal of session cookies, which some dynamic web sites include in the URL.</p>
                <p>The "Canonicalization" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-job-canonicalization.PNG" alt="RSS job, Canonicalization tab" width="80%"/>
                <br/><br/>
                <p>The tab displays a list of canonicalization rules.  Each rule consists of a regular expression (which is matched against a document's URL), and some switch selections.
                       The switch selections allow you to specify whether arguments are reordered, or whether certain specific kinds of session cookies are removed.  Specific kinds of
                       session cookies that are recognized and can be removed are: JSP (Java applications servers), ASP (.NET), PHP, and Broadvision (BV).</p>
                <p>If a URL matches more than one rule, the first matching rule is the one selected.</p>
                <p>To add a rule, enter an appropriate regular expression, and make your checkbox selections, then click the "Add" button.</p>
                <p>The "Mappings" tab permits you to change the URL under which documents that are fetched will get indexed.  This is sometimes useful in an intranet setting because
                       the crawling server might have open access to content, while the users may have restricted access through a somewhat different URL.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-job-mappings.PNG" alt="RSS job, Mappings tab" width="80%"/>
                <br/><br/>
                <p>The "Mappings" tab uses the same regular expression/replacement string paradigm as is used by many connection types running under the Framework.
                       The mappings consist of a list of rules.  Each rule has a match expression, which is a regular expression where parentheses ("("
                       and ")") mark sections you are interested in.  These sections are called "groups" in regular expression parlance.  The replace string consists of constant text plus
                       substitutions of the groups from the match, perhaps modified.  For example, "$(1)" refers to the first group within the match, while "$(1l)" refers to the first match group
                       mapped to lower case.  Similarly, "$(1u)" refers to the same characters, but mapped to upper case.</p>
                <p>For example, suppose you had a rule which had "http://(.*)/(.*)/" as a match expression, and "http://$(2)/" as the replace string.  If presented with the path
                       <code>http://Server/Folder_1/Filename</code>, it would output the string <code>http://Folder_1/Filename</code>.</p>
                <p>If more than one rule is present, the rules are all executed in sequence.  That is, the output of the first rule is modified by the second rule, etc.</p>
                <p>To add a rule, fill in the match expression and output string, and click the "Add" button.</p>
                <p>The "Exclusions" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-job-exclusions.PNG" alt="RSS job, Exclusions tab" width="80%"/>
                <br/><br/>
                <p>Here you can enter a set of regular expressions, one per line, which describe which document URLs to exclude from the job.  This can be very helpful if you
                     are crawling RSS feeds that include a variety of content where you only want to index a subset of the content.</p>
                <p>The "Time Values" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-job-time-values.PNG" alt="RSS job, Time Values tab" width="80%"/>
                <br/><br/>
                <p>Fill in the desired time values.  A description of each value is below.</p>
                <table>
                    <tr><td><b>Value</b></td><td><b>Description</b></td></tr>
                    <tr><td>Feed connect timeout</td><td>How long to wait, in seconds, before giving up, when trying to connect to a server</td></tr>
                    <tr><td>Default feed refetch time</td><td>If a feed specifies no refetch time, this is the time to use instead (in minutes)</td></tr>
                    <tr><td>Minimum feed refetch time</td><td>Never refetch feeds faster than this specified time, regardless of what the feed says (in minutes)</td></tr>
                    <tr><td>Bad feed refetch time</td><td>How long to wait before trying to refetch a feed that contains parsing errors (in minutes, empty is infinity)</td></tr>
                </table>
                <p>The "Security" tab allows you to assign access tokens to the documents indexed with this job.  In order to use it, you must first decide what authority connection to use
                       to secure these documents, and what the access tokens from that authority connection look like.  The tab itself looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-job-security.PNG" alt="RSS job, Security tab" width="80%"/>
                <br/><br/>
                <p>To add an access token, fill in the text box with the access token value, and click the "Add" button.  If there are no access tokens, security will be considered
                       to be "off" for the job.</p>
                <p>The "Metadata" tab allows you to specify arbitrary metadata to be indexed along with every document from this job.  Documents from connections of the RSS type
                       already receive some metadata having to do with the feed that referenced them.  Specifically:</p>
                <table>
                    <tr><td><b>Name</b></td><td><b>Meaning</b></td></tr>
                    <tr><td>PubDate</td><td>This contains the document origination time, in milliseconds since Jan 1, 1970.  The date is either obtained from the feed, or if it is
                                                                absent, the date of fetch is included instead.</td></tr>
                    <tr><td>Source</td><td>This is the name of the feed that referred to the document.</td></tr>
                    <tr><td>Title</td><td>This is the title of the document within the feed.</td></tr>
                    <tr><td>Category</td><td>This is the category of the document within the feed.</td></tr>
                </table>
                <p>The "Dechromed Content" tab allows you to index the description of the content from the feed, instead of the document's contents.  This is helpful when the
                       description of the documents in the feeds you are crawling is sufficient for indexing purposes, and the actual documents are full of navigation clutter or "chrome".
                       The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/rss-job-dechromed-content.PNG" alt="RSS job, Dechromed Content tab" width="80%"/>
                <br/><br/>
                <p>Select the mode you want the connection to operate in.</p>
            </section>

            <section id="sharepointrepository">
                <title>Microsoft SharePoint Repository Connection</title>
                <p>The Microsoft SharePoint connection type allows you to index documents from a Microsoft SharePoint site.  Bear in mind that a single SharePoint
                    installation actually represents a set of sites.  Some sites in SharePoint are directly related to others (e.g. they are subsites), while some sites operate
                    relatively independently of one another.</p>
                <p>The SharePoint connection type is designed so that one SharePoint repository connection can access all SharePoint sites from a specific root site
                    though its explicit subsites.  It is the case that it is desirable in some very large SharePoint installations to access <b>all</b> SharePoint sites using
                    a single connection.  But the ManifoldCF SharePoint connection type does not support that model as of yet.  If this functionality is important for you,
                    contact your system integrator.</p>
                <p>Documents described by SharePoint connections can be secured in either one of two ways.  Either you can choose to secure documents using Active
                    Directory SIDs (in which case, you must use the Active Directory authority type), or you may choose to use native SharePoint groups and users for
                    authorization.  The latter <strong>must</strong> be used in the following cases:</p>
                <br/>
                <ul>
                  <li>You have native SharePoint groups or users created which do not correspond to Active Directory SIDs</li>
                  <li>Your SharePoint 2010 is configured to use Claims Based authorization mode</li>
                  <li>You have ActiveDirectory groups that have more than roughly 1000 members</li>
                </ul>
                <br/>
                <p>In general, native SharePoint authorization is the preferred model, except in legacy situations.  If you choose to use native SharePoint authorization, you
                    will need to define one or more authorities of type "SharePoint/XXX" associated with the same authority group as your SharePoint connection.  Please read
                    the sections of this manual that describe how to configure SharePoint/Native and SharePoint/AD authorities.  Bear in mind that SharePoint when configured
                    to run in Claim
                    Space mode (available starting in SharePoint 2010) uses a federated authorization model, so you should expect to create more than one authority when
                    working with a SharePoint Claims Based installation.  If your SharePoint is not using Claims Based authorization, then a single authority of type "SharePoint/Native" is
                    sufficient.</p>
                <p>If you wish to use the legacy support for the Active Directory authority, then read the section titled "Active Directory Authority Connection" instead.</p>
                <p>A SharePoint connection has two special tabs on the repository connection editing screen: the "Server" tab, and the "Authority type" tab.  The "Server"
                    tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepoint-configure-server.PNG" alt="SharePoint Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>Select your SharePoint server version from the pulldown.  If you do not select the correct server version, your documents may either be indexed with
                    insufficient security protection, or you may not be able to index any documents.  Check with your SharePoint system administrator if you are not sure
                    what to select.</p>
                <p>SharePoint uses a web URL model for addressing sites, subsites, libraries, and files.  The best way to figure out how to set up a SharePoint connection
                    type is therefore to start with your web browser, and visit the topmost root of the site you wish to crawl.  Then, record the URL you see in your browser.</p>
                <p>Select the server protocol, and enter the server name and port, based on what you recorded from the URL for your SharePoint site.  For the "Site path"
                    field, type in the portion of the root site URL that includes everything after the server and port, except for the final "aspx" file.  For example, if the SharePoint
                    URL is "http://myserver:81/sites/somewhere/index.asp", the site path would be "/sites/somewhere".</p>
                <p>The SharePoint credentials are, of course, what you used to log into your root site.  The SharePoint connection type always requires the user name to be
                    in the form "domain\user".</p>
                <p>If your SharePoint server is using SSL, you will need to supply enough certificates for the connection's trust store so that the SharePoint server's SSL
                    server certificate can be validated.  This typically consists of either the server certificate, or the certificate from the authority that signed the server certificate.
                    Browse to the local file containing the certificate, and click the "Add" button.</p>
                <p>The SharePoint connection "Authority type" tab allows you to select the authorization model used by the connection.  It looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepoint-configure-authoritytype.PNG" alt="SharePoint Connection, Authority type tab" width="80%"/>
                <br/><br/>
                <p>Select the authority model you wish to use.</p>
                <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepoint-status.PNG" alt="SharePoint Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the SharePoint connection is not actually referencing a SharePoint instance, which is leading to an error status message instead of
                    "Connection working".</p>
                <p>Since SharePoint uses Windows IIS for authentication, there are many ways in which the configuration of either IIS or the Windows domain under which
                    SharePoint runs can affect the correct functioning of the SharePoint connection.  It is beyond the scope of this manual to describe the kinds of analysis and
                    debugging techniques that might be required to diagnose connection and authentication problems.  If you have trouble, you will almost certainly need to involve
                    your SharePoint IT personnel.  Debugging tools may include (but are not limited to):</p>
                <br/>
                <ul>
                    <li>Windows security event logs</li>
                    <li>ManifoldCF logs (see below)</li>
                    <li>Packet captures (using a tool such as WireShark)</li>
                </ul>
                <br/>
                <p>If you need specific ManifoldCF logging information, contact your system integrator.</p>
                <p></p>
                <p>When you configure a job to use a repository connection of the generic database type, several additional tabs are presented.  These are, in order, "Paths", "Security", and "Metadata".</p>
                <p>The "Paths" tab allows you to build a list of rules describing the SharePoint content that you want to include in your job.  When the SharePoint connection type encounters a subsite,
                    library, list, or file, it looks through this list of rules to determine whether to include the subsite, library, list, or file.  The first matching rule will determine what will be done.</p>
                <p>Each rule consists of a path, a rule type, and an action.  The actions are "Include" and "Exclude".  The rule type tells the connection what kind of SharePoint entity it is allowed to exactly match.  For
                    example, a "File" rule will only exactly match SharePoint paths that represent files - it cannot exactly match sites or libraries.  The path itself is just a sequence of characters, where the "*" character
                    has the special meaning of being able to match any number of any kind of characters, and the "?" character matches exactly one character of any kind.</p>
                <p>The rule matcher extends strict, exact matching by introducing a concept of implicit inclusion rules.  If your rule action is "Include", and you specify (say) a "File" rule, the matcher presumes
                    implicit inclusion rules for the corresponding site and library.  So, if you create an "Include File" rule that matches (for example) "/MySite/MyLibrary/MyFile", there is an implied "Site Include" rule
                    for "/MySite", and an implied "Library Include" rule for "/MySite/MyLibrary".  Similarly, if you create a "Library Include" rule, there is an implied "Site Include" rule that corresponds to it.
                    Note that these shortcuts only applies to "Include" rules - there are no corresponding implied "Exclude" rules.</p>
                <p>The "Paths" tab allows you to build these rules one at a time, and add them either to the bottom of the list, or insert them into the list of rules at any point.  Either way, you construct the rule
                    you want to append or insert by first constructing the path, from left to right, using your choice of text and context-dependent pulldowns with existing server path information listed.  This is what the tab
                    may look like for you.  Bear in mind that if you are using a connection that does not display the status, "Connection working", you may not see the selections you should in these pulldowns:</p>
                <br/><br/>
                <figure src="images/en_US/sharepoint-job-paths.PNG" alt="SharePoint Job, Paths tab" width="80%"/>
                <br/><br/>
                <p>To build a rule, first build the rule's matching path.  Make an appropriate selection or enter desired text, then click either the "Add Site", "Add Library", "Add List", or "Add Text" button, depending on your choice.
                    Repeat this process until the path is what you want it to be.  At this point, if the SharePoint connection does not know what kind of entity your path describes, you will need to select the
                    SharePoint entity type that you want the rule to match also.  Select whether this is an include or exclude rule.  Then, click the "Add New Rule" button, to add your newly-constructed rule
                    at the end of the list.</p>
                <p>The "Security" tab allows you to specify whether SharePoint's security model should be applied to this set of documents, or not.  You also have the option of applying some specified set of access
                    tokens to the documents described by the job.  The tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/sharepoint-job-security.PNG" alt="SharePoint Job, Security tab" width="80%"/>
                <br/><br/>
                <p>Select whether SharePoint security is on or off using the radio buttons provided.  If security is off, you may add access tokens in the text box and click the "Add" button.  The access tokens must
                    be in the proper form expected by the authority that governs your SharePoint connection for this feature to be useful.</p>
                <p>The "Metadata" tab allows you to specify what metadata will be included for each document.  The tab is similar to the "Paths" tab, which you may want to review above:</p>
                <br/><br/>
                <figure src="images/en_US/sharepoint-job-metadata.PNG" alt="SharePoint Job, Security tab" width="80%"/>
                <br/><br/>
                <p>The main difference is that instead of rules that include or exclude individual sites, libraries, lists, or documents, the rules describe inclusion and exclusion of document or list item metadata.  Since metadata is associated
                    with files and list items, all of the metadata rules are applied only to file paths and list item paths, and there are no such things as "site" or "library" metadata path rules.</p>
                <p>If an exclusion rule matches a file's path, it means that <b>no</b> metadata from that file will be included at all.  There is no way to individually exclude a single field using an exclusion rule.</p>
                <p>To build a rule, first build the rule's matching path.  Make an appropriate selection or enter desired text, then click either the "Add Site", "Add Library", "Add List", or "Add Text" button, depending on your choice.
                    Repeat this process until the path is what you want it to be.  Select whether this is an include or exclude rule.  Either check the box for "Include all metadata", or select the metadata you want to include
                    from the pulldown.  (The choices of metadata fields you are presented with are determined by which SharePoint library is selected.  If your rule path does not uniquely specify a library, you cannot select individual
                    fields to include.  You can only select "All metadata".)  Then, click the "Add New Rule" button, to put your newly-constructed rule
                    at the end of the list.</p>
                <p>You can also use the "Metadata" tab to have the connection send path data along with each document, as a piece of document metadata.  To enable this feature, enter the name of the metadata
                    attribute you want this information to be sent into the "Attribute name" field.  Then, add the rules you want to the list of rules.  Each rule has a match expression, which is a regular expression where
                    parentheses ("(" and ")") mark sections you are interested in.  These sections are called "groups" in regular expression parlance.  The replace string consists of constant text plus
                    substitutions of the groups from the match, perhaps modified.  For example, "$(1)" refers to the first group within the match, while "$(1l)" refers to the first match group
                    mapped to lower case.  Similarly, "$(1u)" refers to the same characters, but mapped to upper case.</p>
                <p>For example, suppose you had a rule which had ".*/(.*)/(.*)/.*" as a match expression, and "$(1) $(2)" as the replace string.  If presented with the path
                    <code>Project/Folder_1/Folder_2/Filename</code>, it would output the string <code>Folder_1 Folder_2</code>.</p>
                <p>If more than one rule is present, the rules are all executed in sequence.  That is, the output of the first rule is modified by the second rule, etc.</p>
                <br/>
                <p><b>Example: How to index a SharePoint 2010 Document Library</b></p>
                <p></p>
                <p>Let's say we want to index a Document Library named Documents. The following URL displays contents of the library : http://iknow/Documents/Forms/AllItems.aspx</p>
                <figure src="images/en_US/documents-library-contents.png" alt="Documents Library Contents"/>
                <p>Note that there exists eight folders and one file in our library. Some folders have sub-folders. And leaf folders contain files. The following <b>single</b> Path Rule is sufficient to index <b>all</b> files in Documents library.</p>
                <figure src="images/en_US/documents-library-path-rule.png" alt="Documents Library Path Rule"/>
                <p>If we click Library Tools > Library > Modify View, we will see complete list of all available metadata.</p>
                <figure src="images/en_US/documents-library-all-metadata.png" alt="Documents Library All Metadata"/>
                <p>ManifoldCF's UI also displays all available Document Libraries and their associated metadata too. Using this pulldown, you can select which fields you want to index.</p>
                <figure src="images/en_US/documents-library-metadata.png" alt="Documents Library Selected Metadata"/>
                <p>To create the metadata rule below, click Metadata tab in Job settings. Select Documents from --Select library-- and "Add Library" button. As soon as you have done this, all available metadata will be listed.
                     Enter * in the textbox which is right of the Add Text button. And click Add Text button. When you have done this Path Match becomes /Documents/*. After this you can multi select list of metadata.
                     This action will populate Fields with CheckoutUser, Created, etc. Click Add New Rule button. This action will add this new rule to your Metadata rules.</p>
                <figure src="images/en_US/documents-library-metadata-rule.png" alt="Documents Library Metadata Rule"/>
                <p>Finally click the "Save" button at the bottom of the page. You will see a page looking something like this:</p>
                <figure src="images/en_US/documents-library-summary.png" alt="Documents Library Summary Page"/>
                <br/>
                <p><b>Some Final Notes</b></p>
                <ul>
                    <li>If you don't add * to Patch match rule, your selected fields won't be used. In other words Path match rule <b>/Documents</b> won't match the document <i>/Documents/ik_docs/diger/sorular.docx</i> </li>
                    <li>We can include all metadata using the checkbox. (without selecting from the pulldown list)</li>
                    <li>If we were to index only docx files, our Patch match rule would be <b>/Documents/*.docx</b></li>
                </ul>
                <br/>

                <p><b>Example: How to index SharePoint 2010 Lists</b></p>
                <p></p>
                <p>Lists are a key part of the architecture of Windows SharePoint Services. A document library is another form of a list, and while it has many similar properties to a standard list, it also includes additional
                     functions to enable document uploads, retrieval, and other functions to support document management and collaboration. <a href="http://msdn.microsoft.com/en-us/library/dd490727%28v=office.12%29.aspx">[1]</a> </p>
            	<p>An item added to a document library (and other libraries) must be a file. You can't have a library without a file. A list on the other hand doesn't have a file, it is just a piece of data, just like SQL Table.</p>
                <p>Let's say we want to index a List named IKGeneralFAQ. The following URL displays contents of the list : http://iknow/Lists/IKGeneralFAQ/AllItems.aspx</p>
                <figure src="images/en_US/faq-list-contents.png" alt="IKGeneralFAQ List Contents"/>
                <p>Note that the Lists do not have files. It looks like an Excel spreadsheet. In ManifoldCF Job Settings, Path tab displays all available Lists. It lets you to select the name of the list you want to index.</p>
                <figure src="images/en_US/add-list.png" alt="Add List"/>
                <p>After we select IKGeneralFAQ, hit Add List button and Save button, we have the following Path Rule:</p>
                <figure src="images/en_US/faq-list-path-rule.png" alt="IKGeneralFAQ List Path Rule"/>
                <p>The above <b>single</b> Path Rule is sufficient to index content of IKGeneralFAQ List. Note that unlike the document libraries, we don't need * here.</p>
                <p>If we click List Tools > List > Modify View we will see complete list of all available metadata.</p>
                <figure src="images/en_US/faq-list-all-metadata.png" alt="IKGeneralFAQ List All Metadata"/>
                <p>ManifoldCF's Metadata UI also displays all available Lists and their associated metadata too. Using this pulldown, you can select which fields you want to index.</p>
                <figure src="images/en_US/faq-list-metadata.png" alt="IKGeneralFAQ List Selected Metadata"/>
                <p>To create the metadata rule below, click Metadata tab in Job settings. Select IKGeneralFAQ from --Select list-- and "Add List" button. As soon as you have done this, all available metadata will be listed.
                     After this you can multi select list of metadata. This action will populate Fields with ID, IKFAQAnswer, IKFAQPage, IKFAQPageID, etc. Click Add New Rule button. This action will add this new rule to your Metadata rules.</p>
                <figure src="images/en_US/faq-list-metadata-rule.png" alt="IKGeneralFAQ List Metadata Rule"/>
                <p>Finally click the "Save" button at the bottom of the page. You will see a page looking something like this:</p>
                <figure src="images/en_US/faq-list-summary.png" alt="IKGeneralFAQ List Summary Page"/>
                <br/>
                <p><b>Some Final Notes</b></p>
                <ul>
                    <li>Note that, when specifying Metadata rules, UI automatically adds * to Path match rule for Lists. This is not the case with Document Libraries.</li>
                    <li>We can include all metadata using the checkbox. (without selecting from the pulldown list)</li>
                </ul>
            </section>

            <section id="webrepository">
                <title>Generic Web Repository Connection</title>
                <p>The Web connection type is effectively a reasonably full-featured web crawler.  It is capable of handling most kinds of authentication (basic, all forms of NTLM,
                       and session-based), and can extract links from the following kinds of documents:</p>
                <br/>
                <ul>
                    <li>Text</li>
                    <li>HTML</li>
                    <li>Generic XML</li>
                    <li>RSS feeds</li>
                </ul>
                <br/>
                <p>The Web connection type differs from the RSS connection type in the following respects:</p>
                <br/>
                <ul>
                    <li>Feeds are indexed, if the output connection accepts them</li>
                    <li>Links are extracted from all documents, not just feeds</li>
                    <li>Feeds are treated just like any other kind of document - you cannot control how often they refetch independently</li>
                    <li>There is support for limiting crawls based on hop count</li>
                    <li>There is support for controlling exactly what URLs are considered part of the set, and which are excluded</li>
                </ul>
                <br/>
                <p>In other words, the Web connection type is neither as easy to configure, nor as well-targeted in its separation of links and data, as the RSS connection type.  For that
                       reason, we strongly encourage you to consider using the RSS connection type for all applications where it might reasonably apply.</p>
                <p>Many users of the Web connection type set up their jobs to run continuously, configuring their jobs to occasionally refetch documents, or to not refetch documents
                       ever, and expire them after some period of time.</p>
                <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
                <p>A Web connection has the following special tabs: "Email", "Robots", "Bandwidth", "Access Credentials", and "Certificates".  The "Email" tab
                       looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-configure-email.PNG" alt="Web Connection, Email tab" width="80%"/>
                <br/><br/>
                <p>Enter an email address.  This email address will be included in all requests made by the Web connection, so that webmasters can report any difficulties that their
                       sites experience as the result of improper throttling, etc.</p>
                <p>This field is mandatory.  While a Web connection makes no effort to validate the correctness of the email
                       field, you will probably want to remain a good web citizen and provide a valid email address.  Remember that it is very easy for a webmaster to block access to
                       a crawler that does not seem to be behaving in a polite manner.</p>
                <p>The "Robots" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-configure-robots.PNG" alt="Web Connection, Robots tab" width="80%"/>
                <br/><br/>
                <p>Select how the connection will interpret robots.txt and &lt;meta name=&quot;robots ...&gt; tags on HTML pages.  Remember that you have an interest in crawling people's sites as politely as is possible.</p>
                <p>The "Bandwidth" tab allows you to specify a list of bandwidth rules.  Each rule has a regular expression matched against a URL's throttle bin.
                       Throttle bins, in connections of the Web type, are simply the server name part of the URL.  Each rule allows you to select a maximum bandwidth, number of
                       connections, and fetch rate.  You can have as many rules as you like; if a URL matches more than one rule, then the most conservative value will be used.</p>
                <p>This is what the "Bandwidth" tab looks like:</p>
                <br/><br/>
                <figure src="images/en_US/web-configure-bandwidth.PNG" alt="Web Connection, Bandwidth tab" width="80%"/>
                <br/><br/>
                <p>The screen shot shows the tab configured with a setting that is reasonably polite.  The default value for this tab is blank, meaning that, by default, there is no throttling
                       whatsoever!  Please do not make the mistake of crawling other people's sites without adequate politeness parameters in place.</p>
                <p>To add a rule, fill in the regular expression and the appropriate rule limit values, and click the "Add" button.</p>
                <p>The "Bandwidth" tab is related to the throttles that you can set on the "Throttling" tab in the following ways:</p>
                <br/>
                <ul>
                    <li>The "Bandwidth" tab sets the <b>maximum</b> values, while the "Throttling" tab sets the <b>average</b> values.</li>
                    <li>The "Bandwidth" tab does not affect how documents are scheduled in the queue; it simply blocks documents until it is safe to go ahead, which will use up a crawler thread
                           for the entire period that both the wait and the fetch take place.  The "Throttling" tab affects how often documents are scheduled, so it does not waste threads.</li>
                </ul>
                <br/>
                <p>Because of the above, we suggest that you configure your Web connection using <b>both</b> the "Bandwidth" <b>and</b> the "Throttling" tabs.  Select maximum
                       values on the "Bandwidth" tab, and corresponding average values estimates on the "Throttling" tab.  Remember that a document identifier for a Web connection is the
                       document's URL, and the bin name for that URL is the server name.  Also, please note that the "Maximum number of connections per JVM" field's default value of 10 is
                       unlikely to be correct for connections of the Web type; you should have at least one available connection per worker thread, for best performance.  Since the
                       default number of worker threads is 30, you should set this parameter to at least a value of 30 for normal operation.</p>
                <p>The Web connection's "Access Credentials" tab describes how pages get authenticated.  There is support on this tab for both page-based authentication (e.g.
                       basic auth or all forms of NTLM), as well as session-based authentication (which involves the fetch of many pages to establish a logged-in session).  The initial
                       appearance of the "Access Credentials" tab shows both kinds of authentication:</p>
                <br/><br/>
                <figure src="images/en_US/web-configure-access-credentials.PNG" alt="Web Connection, Access Credentials tab" width="80%"/>
                <br/><br/>

                <p>Comparing Page and Session Based Authentication:</p>
                <table>
                    <tr><td width="20%"><b>Authentication Detail</b></td><td width="40%"><b>Page Based Authentication</b></td><td width="40%"><b>Session Based Authentication</b></td></tr>
                    <tr>
                        <td><b>HTTP Return Codes</b></td>
                        <td>4xx range, usually 401</td>
                        <td>Usually 3xx range, often 301 or 302</td>
                    </tr>
                    <tr>
                        <td><b>How it's recognized as a login request</b></td>
                        <td>4xx range codes always indicate a challenged response</td>
                        <td>Recognized <b>by patterns</b> in the URL or content.
                            Manifold must be told what to look for.
                            3xx range HTTP codes are <b>also used for normal content redirects</b>
                            so there's no built-in way for Manifold to tell the difference,
                            that's why it needs regex-based rules.</td>
                    </tr>
                    <tr>
                        <td><b>How Login form is Rendered in normal Web Browser</b></td>
                        <td>Standard Browser popup dialog.
                            IE, Firefox, Safari, etc. all have their own specific style.</td>
                        <td>Server sends custom HTML or Javascript.
                            Might use red text, might not.
                            Might show a login form, or maybe a &quot;click here to login&quot; link.
                            Can be a regular page, or Javascript popup, there's no specific standard.</td>
                    </tr>
                    <tr>
                        <td><b>Login Expiration</b></td>
                        <td>Usually doesn't expire, depends on server's policy.
                            If it does expire at all, usually based calendar dates
                            and not related to this specific login.</td>
                        <td>Often set to several minutes or hours from the
                            the last login in current browser session.
                            A long spider run might need to re-login several times.</td>
                    </tr>
                    <tr>
                        <td><b>HTTP Header Fields</b></td>
                        <td>From server: WWW-Authenticate: Basic or NTLM with Realm<br/>
                            From client: Authorization: Basic or NTLM</td>
                        <td>From server: Location: and Set-Cookie:<br/>
                            From client: Cookie:<br/>
                            Cookie values frequently change.</td>
                    </tr>
                </table>
                <br/>

                <p>Each kind of authentication has its own list of rules.</p>
                <p>Specifying a page authentication rule requires simply knowing what URLs are protected, and what the proper
                       authentication method and credentials are for those URLs.  Enter a regular expression describing the protected URLs, and select the proper authentication method.
                       Fill in the credentials.  Click the "Add" button.</p>
                <p>Specifying a correct session authentication rule usually requires some research.  A single session-authentication rule usually corresponds to a single session-protected
                       site.  For that site, you will need to be able to describe the following for session authentication to function:</p>
                <br/>
                <ul>
                    <li>The URLs of pages that are protected by this particular site session security</li>
                    <li>How to detect when a page fetch is part of the login sequence</li>
                    <li>How to fill in the appropriate forms within the login sequence with appropriate login information</li>
                </ul>
                <br/>
                <p>A Web connection labels pages that are part of the login sequence "login pages", and pages that are protected site content "content pages".  A Web
                       connection will not attempt to index login pages.  They are special pages that have but one purpose: establishing an authenticated session.</p>
                <p>Remember, the goals of the setup you have to go through are as follows:</p>
                <br/>
                <ul>
                    <li>Identify what site, or part of the site, has protected content</li>
                    <li>Identify which http/https fetches are not content, but are in fact part of a "login sequence", which a normal person has to go through to get the appropriate cookies</li>
                </ul>
                <br/>
                <p>If all this is not complicated enough, your research also has to cover two very different cases: when you are first entering the site anew, and second when you try to fetch
                       a content page and you are no longer logged in, because your session has expired.  In both cases, the session authentication rule must be able to properly log in and
                       fetch content, because you cannot control when a page will be fetched or refetched by the Framework.</p>
                <p>One key piece of data you will supply is a regular expression that basically describes the set of URLs for which the content is protected, and for which the right cookies have to be
                      in place for you to get at the "real" content. Once you've specified this, then for each protection zone (described by its URL regexp), you need to specify how
                      ManifoldCF should identify whether a given fetch should be considered part of the login sequence or not. It's not enough to just identify the URL of login pages,
                      since (for instance) if your session has expired you may well have a redirection get fetched instead of the content you want. So you specify each class of login page
                      as one of three types, using not only the URL to identify the class (this is where you get the second regexp), but also something about what is on the page: whether
                      it is a redirection to a URL (yes, again described by a URL regexp), whether it has a form with a specified name (described by a regexp), or whether it has a
                      specific link on it (once again, described by a regexp).</p>
                <p>As you can see, you declare a page to be a login page by identifying it both by its URL, and by what the crawler finds on the page when it fetches it.  For example, some session-protected
                       sites may redirect you to a login screen when your session expires.  So, instead of fetching content, you would be fetching a redirection to a specific page.  You do <b>not</b>
                       want either the redirection, or the login screen, to be considered content pages.  The correct way to handle such a setup would be to declare one kind of login page to consist
                       of a redirection to the login screen URL, and another kind of login page to consist of the login screen URL with the appropriate form.  Furthermore, you would want to supply
                       the correct login data for the form, and allow the form to be submitted, and so the login form's target may also need to be declared as a login page.</p>
                <p>The kinds of content that a Web connection can recognize as a login page are the following:</p>
                <br/>
                <ul>
                    <li>A redirection to a specific URL, as described by a regular expression</li>
                    <li>A page that has a form of a particular name on it, as described by a regular expression</li>
                    <li>A page that has a link on it to a specific target, as described by a regular expression</li>
                    <li>A page that has specific content on it, as described by a regular expression</li>
                </ul>
                <br/>
                <p>Note that in three of the cases above that there is an implicit flow through the login sequence that you describe by specifying the pages in the login sequence. For
                      example, if upon session timeout you expect to see a redirection to a link, or family of links (remember, it's a regexp, so you can describe that easily), then as part
                      of identifying the redirection as belonging to the login sequence, the web connector also now has a new link to fetch - the redirection link - which is what it does next. The same applies
                      to forms.  If the form name that was specified is found, then the web connector submits that form using values for the form elements that you specify, and using
                      the submission type described in the actual form tag (GET, POST, or multi-part). Any other elements of the form are left in whatever state that the HTML specified;
                      no Javascript is ever evaluated. Thus, if you think a form element's value is being set by Javascript, you have to figure out what it is being set to and enter this
                      value by hand as part of the specification for the "form" type of login page. Typically this amounts to a user name and password.</p>
                <p>In the fourth login sequence case, where specific page content is matched to determine that a page belongs in the login sequence, there is no
                      implicit flow to a subsequent page.  In this case you must supply an <em>override URL</em>,
                      which describes which page to go to to continue the login sequence.  In fact, you are allowed to provide an override URL for all four cases above,
                      but this is only recommended when the web connector would not automatically find the right subsequent page URL on its own.</p>

                <p>To add a session authentication rule, fill in a regular expression describing the site pages that are being protected, and click the "Add" button:</p>
                <br/><br/>
                <figure src="images/en_US/web-configure-access-credentials-session.PNG" alt="Web Connection, Access Credentials tab" width="80%"/>
                <br/><br/>
                <p>Note that you can now add login page descriptions to the newly-created rule.  To add a login page description, enter a URL regular expression, a type of login page, a
                       target link or form name regular expression, and click the "Add" button.</p>
                <p>When you add a login page of the "form" type, you can then add form fill-in information to the login page, as seen below:</p>
                <br/><br/>
                <figure src="images/en_US/web-configure-access-credentials-session-form.PNG" alt="Web Connection, Access Credentials tab" width="80%"/>
                <br/><br/>
                <p>Supply a regular expression for the name of the form element you want to set, and also provide a value.  If you want the value to not be visible in clear text, fill in the
                       "password" column instead of the "value" column.  You can usually figure out the name of the form and its elements by viewing the source of the HTML page in a
                       browser.  When you are done, click the "Add" button.</p>
                <p>Form data that is not specified will be posted with the default value determined by the HTML of the page.  The Web connection type is unable, at this time, to execute
                       Javascript, and therefore you may need to fill out some form values that are filled in by Javascript in order to get the form to post in a useful way.  If you have a form
                       that relies heavily on Javascript to post properly, you may need considerable effort and web programming skills to figure out how to get these forms to post properly
                       with a Web connection.  Luckily, such obfuscated login screens are still rare.</p>
                <p>A series of login pages form a "login page sequence" for the site.  For each login page, the Web connection decides what page to fetch next by what you specified for
                       the login page criteria.  So, for a redirection to a specific URL, the next page to be fetched will be that redirected URL.  For a form, the next page fetched will be the
                       action page indicated by the specified form.  For a link to a target, the next page fetched will be the target URL.  When the login page sequence ends, the next page
                       fetched after that will be the original content page that the Web connection was trying to fetch when the login sequence started.</p>
                <p>Debugging session authentication problems is best done by looking at a Simple History report for your Web connection.  A Web connection records several
                       types of events which, between them, can give a very strong picture of what is happening.  These event types are as follows:</p>
                <br/>
                <table>
                    <tr><td><b>Event type</b></td><td><b>Meaning</b></td></tr>
                    <tr><td>Fetch</td><td>This event records the fetch of a URL.  The HTTP response is recorded as the response code.  In addition, there are several negative
                        code values which the connect generates when the HTTP operation cannot be done or does not complete.</td></tr>
                    <tr><td>Begin login</td><td>This event occurs when the connection detects the transition to a login page sequence.  When a login sequence is entered, no other
                        pages from that protected site will be fetched until the login sequence is completed.</td></tr>
                    <tr><td>End login</td><td>This event occurs when the connection detects the transition from a login page sequence back to normal content fetching.  When this
                        occurs, simultaneous fetching for pages from the site are re-enabled.</td></tr>
                </table>
                <br/>
                <p>The "Certificates" tab is used in conjunction with SSL, and permits you to define independent trust certificate stores for URLs matching specified regular expressions.
                       You can also allow the connection to trust all certificates it sees, if you so choose.  The "Certificates" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-configure-certificates.PNG" alt="Web Connection, Certificates tab" width="80%"/>
                <br/><br/>
                <p>Type in a URL regular expression, and either check the "Trust everything" box, or browse for the appropriate certificate authority certificate that you wish to trust.  (It will
                       also work to simply trust a server's certificate, but that certificate may change from time to time, as it expires.)  Click "Add" to add the certificate rule to the list.</p>
                <p>When you are done, and you click the "Save" button, you will see a summary page looking something like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-status.PNG" alt="Web Status" width="80%"/>
                <br/><br/>
                <p></p>
                <p>When you create a job that uses a repository connection of the Web type, the tabs "Hop Filters", "Seeds", "Canonicalization", "Inclusions", "Exclusions", "Security", and "Metadata"
                       will all appear.  These tabs allow you to configure the job appropriately for a web crawl.</p>
                <p>The "Hop Filters" tab allows you to specify the maximum number of hops from a seed document that a document can be before it is no longer considered to be part of the job.
                       For connections of the Web type, there are two different kinds of hops you can count as well: "link" hops, and "redirection" hops.  Each of these represents an independent count
                       and cutoff value.  A blank value means no cutoff value at all.</p>
                <p>For example, if you specified a maximum "link" hop count of 5, and left the "redirect" hop count blank, then any document that requires more than five links to reach from a seed
                       will be considered out-of-set.  If you specified both a maximum "link" hop count of 5, and a maximum "redirect" hop count 2, then any document that requires more than five links to
                       reach from a seed, <b>and</b> more than two redirections, will be considered out-of-set.</p>
                <p>The "Hop Filters" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-job-hop-filters.PNG" alt="Web Job, Hop Filters tab" width="80%"/>
                <br/><br/>
                <p>On this same tab, you can tell the Framework what to do should there be changes in the distance from the root to a document.  The choice "Delete unreachable
                       documents" requires the Framework to recalculate the distance to every potentially affected document whenever a change takes place.  This may require
                       expensive bookkeeping, however, so you also have the option of  ignoring such changes.  There are two varieties of this latter option - you can ignore the changes
                       for now, with the option of turning back on the aggressive bookkeeping at a later time, or you can decide not to ever allow changes to propagate, in which case
                       the Framework will discard the necessary bookkeeping information permanently.  This last option is the most efficient.</p>
                <p>The "Seeds" tab is where you enter the starting points for your crawl.  It looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-job-seeds.PNG" alt="Web Job, Seeds tab" width="80%"/>
                <br/><br/>
                <p>Enter a list of seeds, separated by newline characters.  Blank lines, or lines that begin with a "#' character, will be ignored.</p>
                <p>The "Canonicalization" tab controls how a web job converts URLs into a standard form.  It looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-job-canonicalization.PNG" alt="Web Job, Canonicalization tab" width="80%"/>
                <br/><br/>
                <p>The tab displays a list of canonicalization rules.  Each rule consists of a regular expression (which is matched against a document's URL), and some switch selections.
                       The switch selections allow you to specify whether arguments are reordered, or whether certain specific kinds of session cookies are removed.  Specific kinds of
                       session cookies that are recognized and can be removed are: JSP (Java applications servers), ASP (.NET), PHP, and Broadvision (BV).</p>
                <p>If a URL matches more than one rule, the first matching rule is the one selected.</p>
                <p>To add a rule, enter an appropriate regular expression, and make your checkbox selections, then click the "Add" button.</p>
                <p>The "Inclusions" tab lets you specify, by means of a set of regular expressions, exactly what URLs will be included as part of the document set for a web job.  The tab
                       looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-job-inclusions.PNG" alt="Web Job, Inclusions tab" width="80%"/>
                <br/><br/>
                <p>You will need to provide a series of zero or more regular expressions, separated by newlines.  The regular expressions are considered to match if they are
                      found anywhere within the URL.  They do not need to match the entire URL.</p>
                <p>Remember that, by default, a web job includes <b>all</b> documents in the world that are linked to your seeds in any way that the web connection type can determine.</p>
                <p>If you wish to restrict which documents are actually processed within your overall set of included documents, you may want to supply some regular expressions on the
                       "Exclusions" tab, which looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-job-exclusions.PNG" alt="Web Job, Exclusions tab" width="80%"/>
                <br/><br/>
                <p>Once again you will need to provide a series of zero or more regular expressions, separated by newlines.  The regular expressions are considered to match if they are
                      found anywhere within the URL.  They do not need to match the entire URL.</p>
                <p>It is typical to use the "Exclusions" tab to remove documents from
                       consideration which are suspected to contain content that both has no extractable links, and is not useful to the index you are trying to build, e.g. movie files.</p>
                <p>The "Security" tab allows you to specify the access tokens that the documents in the web job get indexed with, and looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-job-security.PNG" alt="Web Job, Security tab" width="80%"/>
                <br/><br/>
                <p>You will need to know the format of the access tokens for the
                       governing authority before you can add security to your documents in this way.  Enter the access token you desire and click the "Add" button.</p>
                <p>The "Metadata" tab allows you to exclude specific optional HTTP header metadata along with all documents belonging to a web job.  (A standard set of
                      "fixed" HTTP headers are always included.)  It looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/web-job-metadata.PNG" alt="Web Job, Metadata tab" width="80%"/>
                <br/><br/>
                <p>Select the desired HTTP header metadata you wish to exclude.</p>
            </section>

            <section id="jcifsrepository">
                <title>Windows Share/DFS Repository Connection</title>
                <p>The Windows Share connection type allows you to access content stored on Windows shares, even from non-Windows systems.  Also supported are Samba and various
                       third-party Network Attached Storage servers.</p>
                <p>DFS nodes and referrals are fully supported, provided the referral machine names can be looked up properly via DNS on the server where the Framework is
                       running.  For each document, a Windows Share connection creates an index identifier that can be either a "file:" IRI's, or a mapped "http:" URI's, depending on how it is
                       configured.  This allows for a great deal of flexibility in deployment environments, but also may require some work to properly set up.
                       In particular, if you intend to use file IRI's as your identifiers, you should check with your system integrator to be sure these are being handled properly by the search component of your
                       system.  When you use a browser such as Internet Explorer to view a document from a Windows file system called <code>\\servername\sharename\dir1\filename.txt</code>,
                       the browser converts that to an IRI that looks something like this: <code>file://///servername/sharename/dir1/filename.txt</code>.
                       While this seems simple, major complexities arise when the underlying file name has special characters in it, such as spaces, "#" symbols, or worse still, non-ASCII
                       characters.  Unfortunately, every version of Internet Explorer handles these situations somewhat differently, so there is not any fully correct way for the Windows
                       Share connection type to convert file names to IRI's.  Instead, the connection always uses a standard canonical form, and expects the search results display system component to know how to properly form
                       the right IRI for the browser or client being used.</p>
                <p>If you are interested in enforcing security for documents crawled with a Windows Share repository connection, you will need to first configure an authority connection
                       of the Active Directory type to control access to these documents.  The Share/DFS connector type can also be used with the LDAP authority connection type.</p>
                <p>A Windows Share connection has a single special tab on the repository connection editing screen: the "Server" tab:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-configure-server.PNG" alt="Windows Share Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>You must enter the name of the server to form the connection with in the "Server" field.  This can either be an actual machine name, or a domain name (if you intend
                       to connect to a Windows domain-based DFS root).  If you supply an actual machine name, it is usually the right thing to do to provide the server name in an unqualified
                       form, and provide a fully-qualified domain name in the "Domain name" field.  The user name also should usually be unqualified, e.g. "Administrator" rather than
                       "Administrator@mydomain.com".  Sometimes it may work to leave the "Domain name" field blank, and instead supply a fully-qualified machine name in the "Server"
                       field.  It never works to supply both a domain name <b>and</b> a fully-qualified server name.</p>
                <p>The "Use SIDs" checkbox allows you to control whether the connection uses SIDs as access tokens (which is appropriate for Windows servers and NAS servers
                      that are secured by Active Directory), or user/group names (which is appropriate for Samba servers, and other CIFS servers that use LDAP for security, in conjunction
                      with the LDAP Authority connection type).  Check the box to use SIDs.</p>
                <p>Please note that you should probably set the "Maximum number of connections per JVM" field, on the "Throttling" tab, to a number smaller than the default value of
                       10, because Windows is not especially good at handling multithreaded file requests.  A number less than 5 is likely to perform as well with less chance of causing
                       server-side problems.</p>
                <p>After you click the "Save" button, you will see a connection summary screen, which might look something like this:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-status.PNG" alt="Windows Share Status" width="80%"/>
                <br/><br/>
                <p>Note that in this example, the Windows Share connection is not responding, which is leading to an error status message instead of "Connection working".</p>
                <p></p>
                <p>When you configure a job to use a repository connection of the Windows Share type, several additional tabs are presented.  These are, in order, "Paths", "Security",
                       "Metadata", "Content Length", "File Mapping", and "URL Mapping".</p>
                <p>The "Paths" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-job-paths.PNG" alt="Windows Share Job, Paths tab" width="80%"/>
                <br/><br/>
                <p>This tab allows you to construct starting-point paths by drilling down, and then add the constructed paths to a list, or remove existing paths from the list.  Without any
                       starting paths, your job includes zero documents.</p>
                <p>Make sure your connection has a status of "Connection working" before you open this tab, or you will see an error message, and you will not be able to build
                       any paths.</p>
                <p>For each included path, a list of rules is displayed which determines what folders and documents get included with the job.  These rules
                       will be evaluated from top to bottom, in order.  Whichever rule first matches a given path is the one that will be used for that path.</p>
                <p>Each rule describes the path matching criteria.  This consists of the file specification (e.g. "*.txt"), whether the path is a file or folder name, and whether a file is
                       considered indexable or not by the output connection.  The rule also describes the action to take should the rule be matched: include or exclude.  The file specification
                       character "*" is a wildcard which matches zero or more characters, while the character "?" matches exactly one character.  All other characters must match
                       exactly.</p>
                <p>Remember that your specification must match <strong>all</strong> characters included in the file's path.  That includes all path separator characters ("/").
                      The path you must match always begins with an initial path separator.  Thus, if you want to exclude the file "foo.txt" at the root level, your exclude rule must
                      match "/foo.txt".</p>
                <p>To add a rule for a starting path, select the desired values of all the pulldowns, type in the desired file criteria, and click the "Add" button.  You may also insert
                       a new rule above any existing rule, by using one of the "Insert" buttons.</p>
                <p>The "Security" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-job-security.PNG" alt="Windows Share Job, Security tab" width="80%"/>
                <br/><br/>
                <p>The "Security" tab lets you control three things: File security, share security, and (if security is off) the security tokens attached to all documents indexed by the job.</p>
                <p><b>File security</b> is the security Windows applies to individual files.  This kind of security is supported by practically all Windows-compatible NAS-type servers,
                       so you may use this feature without cause for concern.</p>
                <p><b>Share security</b> is the security Windows applies to Windows shares.  This is an older kind of security that is no longer prevalent in most enterprise organizations.
                       Many modern NAS systems and Samba also do not support this security model.  If you enable this kind of security in your job while crawling against a system that
                       does not support it, your job will not run correctly; the first document access will cause an error, and the job will abort.</p>
                <p>If you turn off file security, you have the option of adding index access tokens of your own to all documents crawled by the job.  These tokens must, of course, be
                       in a form appropriate for the governing authority connection.  Type the token into the box and click the "Add" button.  It is unusual to use this feature other
                       than for demonstrations.</p>
                <p>The "Metadata" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-job-metadata.PNG" alt="Windows Share Job, Metadata tab" width="80%"/>
                <br/><br/>
                <p>This tab allows you to ingest a document's path, as modified by a set of regular expression rules, as a piece of document metadata.  Enter the metadata name you want
                       in the "Path attribute name" field.  Then, add the rules you want to the list of rules.  Each rule has a match expression, which is a regular expression where parentheses ("("
                       and ")") mark sections you are interested in.  These sections are called "groups" in regular expression parlance.  The replace string consists of constant text plus
                       substitutions of the groups from the match, perhaps modified.  For example, "$(1)" refers to the first group within the match, while "$(1l)" refers to the first match group
                       mapped to lower case.  Similarly, "$(1u)" refers to the same characters, but mapped to upper case.</p>
                <p>For example, suppose you had a rule which had ".*/(.*)/(.*)/.*" as a match expression, and "$(1) $(2)" as the replace string.  If presented with the path
                       <code>Project/Folder_1/Folder_2/Filename</code>, it would output the string <code>Folder_1 Folder_2</code>.</p>
                <p>If more than one rule is present, the rules are all executed in sequence.  That is, the output of the first rule is modified by the second rule, etc.</p>
                <p>The "Content Length tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-job-content-length.PNG" alt="Windows Share Job, Content Length tab" width="80%"/>
                <br/><br/>
                <p>This tab allows you to set a maximum content length cutoff value, to avoid having the job try to index exceptionally large documents.  Enter the desired maximum value.
                       A blank value indicates an unlimited cutoff length.</p>
                <p>The "File Mapping" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-job-file-mapping.PNG" alt="Windows Share Job, File Mapping tab" width="80%"/>
                <br/><br/>
                <p>The mappings specified here are similar in all respects to the path attribute mapping setup described above.  The mappings are applied to change the actual file path
                       discovered by the crawler into a different file path.  This can sometimes be useful if there is some kind of conversion process between raw documents and
                       parallel data files that contain extracted data.</p>
                <p>The "URL Mapping" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/jcifs-job-url-mapping.PNG" alt="Windows Share Job, URL Mapping tab" width="80%"/>
                <br/><br/>
                <p>The mappings specified here are similar in all respects to the path attribute mapping setup described above.  If no mappings are present, the file path is converted
                       to a canonical file IRI.  If mappings are present, the conversion is presumed to produce a valid URL, which can be used to access the document via some
                       variety of Windows Share http server.</p>
                <p>Accessing some servers may result in "Couldn't connect to server: Logon failure: unknown user name or bad password" Connection Status, because the default version of NTLM used for
                       authentication is incompatible.  If this is the case, the Windows Share repository connector can be configured to use NTLMv1, rather than the NTLMv2 default. This is done by
                       setting the property "org.apache.manifoldcf.crawler.connectors.jcifs.usentlmv1" to "true" in properties.xml file.</p>

            </section>

            <section id="wikirepository">
                <title>Wiki Repository Connection</title>
                <p>The Wiki repository connection type allows you to index content from the main space of a Wiki or MediaWiki site.  The connection type uses the Wiki API
                  in order to fetch content.  Only publicly visible documents will be indexed, and there is thus typically no need of an authority for Wiki content.</p>
                <p>This connection type has no support for any kind of document security, except for hand-entered access tokens provided on a per-job basis.</p>
                <p>A Wiki connection has only one special tab on the repository connection editing screen: the "Server" tab.  The "Server" tab looks like this:</p>
                <br/><br/>
                <figure src="images/en_US/wiki-configure-server.PNG" alt="Wiki Connection, Server tab" width="80%"/>
                <br/><br/>
                <p>The protocol must be selected in the "Protocol" field.  At the moment only the "http" protocol is supported.  The server name must be provided in the "Server name" field.
                      The server port must be provided in the "Port" field.  Finally, the path part of the Wiki URL must be provided in the "Path name" field and must start with a "/" character.</p>
                <p>When you configure a job to use a repository connection of the Wiki type, no additional tabs are currently presented.</p>
            </section>

        </section>

        <section id="notificationconnectiontypes">
            <title>Notification Connection Types</title>

            <section>
                <title>Slack Notifications</title>
	            <p>The Slack notification connection allows you to send job notifications to a Slack channel. The connection type uses the Slack Incoming WebHook API in order to deliver messages to Slack.</p>
	            <p>A Slack notification connection has only one special tab on the notification connection editing screen: the "Slack WebHook" tab.  The "Slack WebHook" tab looks like this:</p>
	            <br/><br/>
	            <figure src="images/en_US/slack-configure-slack-webhook.PNG" alt="Slack Notification Connection, Slack WebHook tab" width="80%"/>
	            <br/><br/>
	            <p>When you configure a job to use a notification connection of the Slack notification type, an additional tab "Message" is presented.</p>
	            <p>The "Messages" tab looks like this:</p>
	            <br/><br/>
	            <figure src="images/en_US/slack-job-message.PNG" alt="Slack Notification Job, Message tab" width="80%"/>
	            <br/><br/>
	            <p>This tab allows you to set the notification messages for the different job statuses. The "Channel" specifies the name of the Slack channel, where the message will be sent to.
	                    If no channel is defined, the message is sent to the default channel of the Slack Incoming WebHook.</p>
	            <p>The "Message" supports Markdown formatting. Refer to the <a href="https://api.slack.com/custom-integrations">Slack Custom Integrations</a> documentation for more information.</p>
            </section>
            
            <section>
                <title>Rocket.Chat Notifications</title>
	            <p>The Rocket.Chat notification connection allows you to send job notifications to a Rocket.Chat channel. The connection type uses the Rocket.Chat REST API to post messages.</p>
	            <p>A Rocket.Chat notification connection has only one special tab on the notification connection editing screen: the "Rocket.Chat REST API" tab.  The tab looks like this:</p>
	            <br/><br/>
	            <figure src="images/en_US/rocketchat-configure-restapi.PNG" alt="Rocket.Chat Notification Connection, Rocket.Chat REST API tab" width="80%"/>
	            <br/><br/>
	            <p>Enter the server URL of your Rocket.Chat instance and the user credentials here. The user field takes either the username or the email address of your Rocket.Chat user. Fill out the proxy fields if you need
	               to connect to your Rocket.Chat through an http proxy.</p>
	            <p>When you configure a job to use a notification connection of the Rocket.Chat notification type, an additional tab "Rocket.Chat Notifications" is presented.</p>
	            <p>The tab looks like this:</p>
	            <br/><br/>
	            <figure src="images/en_US/rocketchat-job-notifications.PNG" alt="Rocket.Chat Notification Job, Notification tab" width="80%"/>
	            <br/><br/>
	            <p>This tab allows you to set the notification messages for the different job statuses. The tab begins with a section for global settings, followed by multiple sections for each
	               notification type. The default channel defines the channel, to which the messages are posted. You can customize the appearance of the posted message with the alias, emoji and avatar fields.</p>
	            <p>The "Channel" field in the second section allows you to override the default channel for the corresponding notification type. If no channel is defined, the message is sent to the specified default channel.</p>
	            <p>The "Message" field holds the actual message that will be posted to Rocket.Chat. The field supports Markdown for formatting the message. Refer to the <a href="https://docs.rocket.chat">Rocket.Chat</a> documentation for detailed information.</p>
            </section>

        </section>

</body>
</document>
