Usage Analytics Database Content
This topic contains the following sections:
Usage Analytics database schema
The following schema presents all the tables and the relations between the tables of the Usage Analytics database.
Content of Usage Analytics database tables
The following table describes the content of each Usage Analytics database table.
Table | Description |
---|---|
Users | Represents a user that accesses one of the .NET search interfaces monitored by the
Usage Analytics module.
|
UserMetadata | Represents metadata related to a specific user. This entity is used to store additional
information (see Customizing the Collected Usage Analytics Data).
|
Sessions | Represents a sequence of interactions between a user and a .NET search interface.
Looking at the sequence of actions in a session allows administrators to determine
if a search session was a success or not.
|
SessionMetadata | Represents the metadata related to a specific session. This entity is used to store
additional information (see Customizing the Collected Usage Analytics Data).
|
SearchInterfaces | Represents the .NET search interfaces on which data is collected.
|
Actions | Represents any action that can be performed on a .NET search interface. This table
is the central part of the Usage Analytics database design.
|
ActionValues | Represents the various values related to an action.
|
Queries | Represents the various queries entered by users.
|
SearchHubs | Represents the various search hubs.
|
Results | Represents the results on which an action is performed. This entity is a bridge between
an action and documents.
|
Documents | Represents documents that are available for the search. Basically, it holds information
to find this document in the index.
|
DocumentMetadata | Represents metadata related to a specific document. This identity is used to store
additional information (see Customizing the Collected Usage Analytics Data).
|
Collections | Represents collections from which sources come from.
|
Sources | Represents sources from which documents come from.
|
ActionKeywords | Represents the various keywords related to an action.
|
Keywords | Represents the various query keywords.
|
Versions (Internal Coveo Table) | Represents the version of this database. This is a utility table used by CES to determine
if the database is up-to-date.
|
Relations between tables in the Usage Analytics database
The following table provides a description of the relations between Usage Analytics database tables.
Table Relation | Description |
---|---|
User – UserMetadata | Users can have zero or more metadata. By default, CES does not store metadata on users. This table is filled by custom data (see Customizing the Collected Usage Analytics Data). |
User – Session | A session must be initiated by a user. If a .NET search interface allows anonymous connections, then the anonymous user initiates all the sessions on that .NET search interface. |
Session – SessionMetadata | Sessions can have zero or more metadata. By default, CES does not store metadata on sessions. This table is filled by custom data (see Customizing the Collected Usage Analytics Data). |
Session – Action | An action must be performed on a specific session. This relation allows administrators to link every action performed to a specific user. |
SearchHub – Action | An action can be performed on a specific search hub. This allows administrators to track statistics on specific search hubs. |
Search Interface – Action | An action must be performed on a specific .NET search interface. This allows administrators to track statistics on specific .NET search interfaces. |
Parent Action – Action | A series of actions can be performed to complete a search session. This relation allows administrators to follow the search path of a user through the .NET search interface. |
Root Action – Action | Actions are based on a root action. A root action is the first action of a search path of a user through the .NET search interface. |
Action – ActionValue | An action contains one or more action values (see Logged values). |
Action – Result | An action contains zero or more search results depending on the action type. |
Document – Result | A document is linked to one or more search results across the actions. |
Document – DocumentMetadata | Documents can have zero or more metadata. By default, CES does not store metadata on documents. This table is filled by custom data (see Customizing the Collected Usage Analytics Data). |
Source – Document | Documents must be located in a source. |
Collection– Document | Documents must be located in a collection. |
Action – ActionKeyword | An action can have zero or more action keywords depending on the action type. |
Keyword – ActionKeyword | A keyword is linked to one or more action keyword across the actions. |
Query – Action | A query is linked to one or more action. |
Logged actions
The following table lists the action types logged by the Usage Analytics module. You can overwrite these actions in ASP.net (see Customizing the Collected Usage Analytics Data).
Logged action type | Logged action name |
---|---|
CHANGE_INTERFACE | "ChangeInterface" |
CLEAR_REFINE_BY_FIELD | "ClearRefineByField" |
DID_YOU_MEAN | "DidYouMean" |
EXPAND_QUERY | "ExpandQuery" |
EXPORT_TO_EXCEL | "ExportToExcel" |
FILTER_REFINE_BY_FIELD | "FilterRefineByField" |
MANUAL_RATING | "ManualRating" |
OPEN_CACHED_VERSION | "OpenCachedVersion" |
OPEN_DOCUMENT | "OpenDocument" |
PAGE_CHANGE | "PageChange" |
PERFORM_SEARCH | "PerformSearch" |
RATE_THIS_SEARCH | "RateThisSearch" |
REFINE_BY_CLUSTER | "RefineByCluster" |
REFINE_BY_FIELD | "RefineByField" |
REFINE_BY_SCOPE | "RefineByScope" |
REMOVE_REFINE_BY_CLUSTER | "RemoveRefineByCluster" |
REMOVE_REFINE_BY_FIELD | "RemoveRefineByField" |
REMOVE_REFINE_BY_SCOPE | "RemoveRefineByScope" |
RSS_LINK | "RSSLink" |
SEARCH_WITHIN_RESULTS | "SearchWithinResults" |
SHOW_DETAILS | "ShowDetails" |
SHOW_IN_DETAIL_VIEW | "ShowInDetailView" |
SORT_BY_FIELD | "SortByField" |
Logged values
The following table lists the value types logged by the Usage Analytics module.
Logged value type | Logged value name |
---|---|
CLUSTER_NAME | "ClusterName" |
DOCUMENT_SCORE | "DocumentScore" |
FACET_TYPE_NAME | "FacetTypeName" |
FIELD_LOOKUP | "FieldLookup" |
FIELD_NAME | "FieldName" |
FIELD_VALUE | "FieldValue" |
OUTPUT_TYPE | "OutputType" |
PREVIOUS_INTERFACE | "PreviousInterface" |
PREVIOUS_PAGE | "PreviousPage" |
QUERY_ADVANCED_EXPRESSION | "QueryAdvancedExpression" |
QUERY_AFTER | "QueryAfter" |
QUERY_BEFORE | "QueryBefore" |
QUERY_EXECUTION_TIME | "QueryExecutionTime" |
QUERY_MODE | "QueryMode" |
QUERY_SORT_CRITERIA | "QuerySortCriteria" |
QUERY_SOURCE
|
"QuerySource" |
QUERY_SUPER_USER_TOKEN
|
"QuerySuperUserToken" |
QUERY_SUPER_USER_TOKEN_NAME |
"QuerySuperUserTokenName" |
QUERY_TOTAL_COUNT | "QueryTotalCount" |
QUERY_WAS_CHANGED
|
"QueryWasChanged" |
REFINE_TYPE | "RefineType" |
REPORT_COMMENT | "ReportComment" |
REPORT_SCORE | "ReportScore" |
REQUESTED_PAGE | "RequestedPage" |
SCOPE_CAPTION | "ScopeCaption" |
SCOPE_EXPR | "ScopeExpr” |
SORT_ORDER | "SortOrder" |