Product DocsMenu

Coveo Platform 7.0 >
Administrator Help > Coveo .NET Front-End 12.0 > Enabling a User Profile Database

Enabling a User Profile Database

A Coveo .NET Front-End user profile contains the end-user preferences, saved queries, and saved filters (see Modifying .NET Search Interface Preferences and Using Saved Queries and Filters in .NET Search Interfaces) .

You can use MongoDB to allow the Coveo .NET Front-End to save user profiles in a database rather than in browser cookies. Search users can then access their personal profile from any browser on any device even in environments where browser cookies are not allowed or deleted manually or automatically.

To enable a profile database on a Coveo .NET Front-End server

  1. Install MongoDB on a server accessible to your Coveo .NET Front-End server (see Installing MongoDB on a Server).

  2. Using an administrator account, connect to your Coveo .NET Front-End server.

  3. Using a text editor:

    1. Open the [.Net_Front-End_Path]\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 user profile database feature:

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


      • 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.

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

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

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

  4. In the case of a Coveo instance with multiple Front-End servers, repeat this procedure on all other Front-End servers.

People who viewed this topic also viewed