Enabling the URL Shortener Database
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
-
Using an administrator account, connect to the Coveo .NET Front-End server.
-
Using a text editor:
-
Open the [.Net_Front-End_Path]\Web\Web.config file.
Example: By default: C:\Program Files\Coveo .NET Front-End 12\Web\Web.config
-
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"/>
-
-
Save the file.
The features are immediately effective on this Coveo .NET Front-End server.
-