Optional: Configuring Elasticsearch
All Pega applications, including Pega Customer Service and Pega Knowledge, use the
Elasticsearch engine. You can configure Elasticsearch to fine-tune your search configuration
to ensure that the search results meet your business needs. Depending on your business requirements, you can specify a search option that returns a
broad set of results, or a more specific or exact set of results.
Contains is the default search method. See
Defining the search method in this section for a complete description
of the Elasticsearch configuration options. This section contains the following topics: The pySearchMethod property specifies how the Pega Knowledge
article search method is conducted. You define the pySearchMethod
property in different rules that support searches in the Interaction portal and the Help
site. Returns articles that contain an exact match for the search term
found in the title, abstract, content body, or tags. Example: Searching for the word “male” returns all articles that
contain the word “male.” The results will not return articles
that contain the words “female” or “males, because they are not
exact matches. Searches for the keyword within any word in the article (partial
or match). This is the default search method. Example: Searching for the word “male” returns results that
contain the word “female” or “males.” In addition to performing an Exact search, the Fuzzy search
method finds all permutations and combinations of the search
term based on the value in the
pyPrefixLength field in the fuzzy
search settings. Example: If you search for the word “foot” and the
pyPrefixLength field is set to 3, the
Fuzzy search method performs an Exact search on the first three
letters of the search word, and then executes all permutations
and combinations of the characters after the first three
letters. A search for “foot” will return results that contain
"fool," "food," "foot," and so forth. The value in the pyPrefixLength field
plays a critical role in the results you get when you perform a
Fuzzy search. You should set the
pyPrefixLength field to 3 (minimum)
or greater. For more information about how Elasticsearch implements fuzzy
search queries, see the Elasticsearch website
(www.elastic.co). Configure fuzzy search to fine-tune your search configuration to ensure that the
search results meet your business requirements. Pega Knowledge uses the
D_FuzzyConfig data page to configure the fuzzy search options. To
change the search settings, use the FuzzySearchConfig data transform,
which populates the D_FuzzyConfig data page. You can configure Elasticsearch to include an article's attachment in a search. The
attachment must contain some text, for example a Microsoft Word or PDF document.
Elasticsearch ignores attachments that contain only graphics.Defining the search method
The following table describes the Elasticsearch configuration options.Search configuration option Description Exact Contains Fuzzy Configuring fuzzy search
Including article attachments in search
Previous topic Configuring search behavior Next topic Configuring language translation