Product DocsMenu

Enabling the URL Shortener Database

Once MongoDB is installed on a server accessible to a Coveo .NET Front-End server (see Installing MongoDB on a Server), you can activate the URL shortener.

In the case of a Coveo instance with multiple Front-End servers, you must perform the following procedure on each Front-End server.

To enable the URL shortener databases on a Coveo .NET Front-End server

  1. Using an administrator account, connect to the Coveo .NET Front-End server.

  2. Using a text editor:

    1. Open the [.Net_Front-End_Path]\Web\Web.config file.

      Example: By default: C:\Program Files\Coveo .NET Front-End 12\Web\Web.config

    2. In the <coveoEnterpriseSearch> section of the file, edit the following line to enable the URL shortener database feature:

      <database enabled="true" connectionString="mongodb://[username:password@][MongoDB_Server]/[databaseName]"/>  

      where:

      • you include the [username:password@] prefix when you enabled authentication. Replace [username:password@] by the credentials of a user with read and write permissions to this database.

      • you replace [MongoDB_Server] with the hostname of the MongoDB server.

      • you replace [databaseName] with the name that you want to use for the database. MongoDB automatically creates a database using the name that you provide if it does not already exist. If you already created the database and users, ensure to use the same database name.

      Examples: When MongoDB is available from this Coveo .NET Front-End server:
      <database enabled="true" connectionString="mongodb://localhost/SearchInterfaceInfo"/>

      When MongoDB is available from the MyMongoDBServer server and authentication is enabled:

      <database enabled="true" connectionString="mongodb://MyCoveoUser:MyPassword@MyMongoDBServer/SearchInterfaceInfo"/>
    3. Save the file.

      The features are immediately effective on this Coveo .NET Front-End server.

People who viewed this topic also viewed