This page was last edited on August 19, 2014, at 23:00.
Comments or questions about this documentation? Contact us for support!
UCS supports full-text search of contacts, interactions, and standard responses using the Platform SDK (PSDK) Contact API.
To enable full text search, the stored data must be prepared, an operation known as indexing. Indexing converts, abbreviates, and sorts data to allow fast searching in large data sets.
There are various ways of preparing the data for the index; one way is to divide text data into words. Another way of preparing text data is stemming, or storing only the stem of a word rather than all its forms (for example, run, running, runs, and ran all stored as simply run). UCS uses analyzers to perform word division and stemming; you can configure which analyzer applies to which database field. In addition,
This refers to the location of the indexes of the primary and backup UCS instances. The two types of deployment require different settings of the shared option (index section).
In this type both primary and backup instances use the same storage path for the index. This is recommended in the following cases:
With collocated deployment, sharing must be enabled (shared = true) so that only the primary instance updates the index. It can also be enabled when sharing the index over a network.
In this type each instance his its own set of index files. Note that the backup instance periodically reads the database to replicate contact, interaction, and standard response updates to its local index. Here is a list of cases in which distributed deployment is recommended:
In this type of deployment, both UCS applications must have sharing disabled (shared = false).
It is important to note that the UCS indexing service enables searching for text data, but does not guarantee its retrieval.
When an object is found it must be retrieved using standard PSDK methods. These methods are documented in the API References of the Platform SDK.
When designing an application, data coming from search results should be considered as cached data, like the preview that can be seen in web search engines. This data is optimized for search and cannot be used to update UCS database objects. For example, the StructuredText of an interaction is rendered from HTML to text. All formatting is lost if this data is re-inserted into the interaction.
Documents stored in the index will at least have the following retrievable fields:
Example:
In the index, even dates and numbers are text. This format enables alphabetic sorting, so that, for example, 21 December 2008 comes before 1 June 2009.
Default configuration enables the indexing of Contacts, Interactions and Standard Responses.
Read about sizing for the database and its index.