Creating search filters for BMC applications
BMC Helix Knowledge Management by ComAround supports creating filters to narrow down search results in BMC applications based on predefined conditions. These filters use article tags as filtering criteria. A single filter can combine multiple article tags by using the AND, OR, and NOT operators. When users search for knowledge articles in a BMC application that uses a specific filter, the search results return only the articles that include a tag or a combination of tags defined in the filter.
You can create and use search filters for the following BMC applications:
- BMC Helix Virtual Agent
- BMC Helix Digital Workplace Advanced
- BMC HelixGPT
As an administrator of BMC Helix Innovation Studio, you can create search filters for supported BMC applications. After you create a search filter in BMC Helix Innovation Studio, you must enable it in the BMC application. For more information about enabling search filters for the required chatbot instance in BMC Helix Virtual Agent, see Defining a knowledge search provider for chatbot. Learn how to enable search filters for BMC Helix Digital Workplace Advanced in Configuring search.
The following image shows the benefits of using search filters:
Static and dynamic tags
When you create search filters in BMC Helix Innovation Studio, you can use the following types of tags:
Tag type | Definition | Example |
---|---|---|
Static | Static tags are predefined and fixed descriptive labels or keywords assigned to articles in BMC Helix Knowledge Management by ComAround. | For example, Line of business=HR is a static tag. If the search filter uses this tag as filtering criteria, the search results return only the knowledge articles that include the Line of business=HR tag. |
Dynamic | Dynamic tags are constructed on-the-fly based on custom processes that query CTM forms. These processes obtain information specific to a current user from a CTM form and use this information to construct the tag. Dynamic tags are generated for each user, and they have different output for each user. However, the structure of dynamic tags is fixed. Dynamic tags consist of an attribute of the tag and the tag value. For example, Line of business (attribute)=Finance (value). During the search, the generated dynamic tag is compared with static tags assigned to articles inBMC Helix Knowledge Management by ComAround. Only the articles that contain a static tag identical to the generated dynamic tag are returned in the search. Therefore, static tags must follow the same syntax as dynamic tags for successful tag mapping during the search. Note: You can distinguish dynamic tags by the presence of the cogwheel icon next to the tag name A predefined set of dynamic tags is available by default. However, as an administrator of BMC Helix Innovation Studio, you can create custom dynamic tags. For more information, see (Optional) To create a process that constructs a dynamic tag. | For example, Get Region is a dynamic tag. Region is an attribute of the tag, and the tag value is determined dynamically. This tag is based on the custom process definition that queries the CTM:People form and determines a region to which a specific user belongs. For example, if a user belongs to the Europe region, the Region=Europe tag is generated in real time. If another user belongs to the US region, the Region=US tag is generated. If the search filter uses this tag as filtering criteria, it maps this dynamic tag to static tags added to the knowledge articles and returns only the articles that include the identical static tag. If you add Region=Europe static tag to articles about vacation policies in Europe and the Region=US tag to articles about vacation policies in the US, the search filter maps the generated dynamic tags to these static tags and returns articles with the Region=Europe tag for the user from Europe and articles with the Region=US tag for the user from the US. |
The following table provides information about dynamic tags available by default, and their structure. You can also find information about the formatting patterns that static tags in the knowledge articles must follow for proper mapping with each dynamic tag.
Dynamic tag | Description | Dynamic tag structure | Required syntax of static tags |
---|---|---|---|
Get Company | Obtains information about the company of a current user by using the CTM:People form from BMC Helix ITSM | Company=Company of a current user | Company=Company name For example, Company=Apex Global |
Get Department | Obtains information about the department of a current user by using the CTM:People form from BMC Helix ITSM | Department=Department of a current user | Department=Department name For example, Department=Payroll |
Get Knowledge Set | Obtains information about the knowledge set of a current user by using the following forms:
| Knowledge Set=Knowledge set of a current user | Knowledge Set=Knowledge Set name For example, Knowledge Set=Policy |
Get Line of Business | Obtains information about the line of business of a current user by using the following forms:
| Line of business=Line of business of a current user | Line of business=Line of business name For example, Line of Business=Human Resource |
Get Region | Obtains information about the region of a current user by using the CTM:People form from BMC Helix ITSM | Region=Region of a current user | Region=Region name For example, Region=Europe |
Get Site | Obtains information about the site of a current user by using the CTM:People form from BMC Helix ITSM | Site=Site of a current user | Site=Site name For example, Site=Tel Hai |
Get Support groups | Obtains information about the support group of a current user by using the CTM:Support Group Functional Role People Assoc Join form from BMC Helix ITSM. It is a join form between CTM:SupportGroupFuncRoleLookUp and CTM:People. | Support Group=Support group of a current user | Support Group=Group name For example, Support Group=BMCOpsMonitoring Support Group1 |
Logical operators
When you create search filters in BMC Helix Innovation Studio, you can use the following types of operators:
Operator | Description | Example |
---|---|---|
AND | Returns articles that meet all filtering conditions. | Line of Business = HR AND Operational Tier 1 = People |
OR | Returns articles that meet any of the filtering conditions. | Line of Business = Office Facilities OR Knowledge Set = Office |
NOT | Excludes articles that match the specified filtering conditions. | NOT (Line of Business = Archived) |
Combining operators
You can combine AND, OR, and NOT operators to create advanced search filters that return highly specific results. Use parentheses to group conditions and control the logic flow. The combination helps improve the relevance of search results. The following examples illustrate how to create advanced filters:
- (Topic = Performance AND Platform = Windows11) AND NOT (Platform = Windows10 OR Platform = MacOS)—Returns articles about performance issues related to Windows 11, excluding those related to Windows 10 or MacOS.
(Line of Business = HR OR Line of Business = Finance) AND NOT (Knowledge Set = Archived)—Returns articles from HR or Finance, but excludes any that are archived.
Scenarios for creating search filters
Scenario for creating a search filter with static tags
The following scenario describes how a company creates and uses a search filter that includes static tags for BMC Helix Digital Workplace Advanced. However, the process of creating and utilizing search filters with static tags is identical for BMC Helix Virtual Agent.
Scenario for creating a search filter with a dynamic tag
The following scenario describes how a company creates and uses a search filter that includes a dynamic tag for BMC Helix Virtual Agent. However, the process of creating and utilizing search filters with dynamic tags is identical for BMC Helix Digital Workplace Advanced.
Scenario for creating a search filter with a combination of AND, OR, and NOT operators
The following scenario explains how a company creates and uses advanced search filters in BMC Helix Virtual Agent, incorporating a combination of logical operators. However, the process of creating and using advanced search filters is the same for BMC Helix Digital Workplace Advanced.
(Optional) To create a process that constructs a dynamic tag
As an administrator of BMC Helix Innovation Studio, you can create a process to construct a dynamic tag.
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Click the application for which you want to create a dynamic tag:
- To create a dynamic tag for BMC Helix Virtual Agent, click BMC Chatbot.
- To create a dynamic tag for BMC Helix Digital Workplace Advanced, click Digital Workplace.
- Click the Processes tab and click New.
- On the Process Properties pane, specify the following fields:
Name—enter a name for the process.
- Run as—Select Administrator.
- On the Process Properties pane, add the Output process variable required for the workflow.
- In the VARIABLES section, click Add/ Remove Variables.
- Click Add Variable.
- In the Name field, enter tag.
- In Variable type field, select Output.
- From the Data Type list, select Text.
- Click Save.
- In Workflow designer, drag and drop the Get Records by Query element on to the canvas and map the required process input variables:
- On the GENERAL tab, in the INPUT MAP section, from the Record Definition Name list, select the CTM form you want to query. For example, select People.
- In the INPUT MAP section, click Click to build an expression and build the following expression that queries the selected CTM form:
This expression queries the selected CTM form for the current user. - In the OUTPUT MAP section, to add the process output parameter, click Add and specify the following output parameters:
- From the Name field, select tag.
- Click Click to build an expression for the Source parameter.
In the expression builder, construct an expression that will be returned as a tag. Enter the attribute of the tag as text and select the tag value from the list of available form values. See the following image for the example structure of the dynamic tag:
- Click Ok.
- Click Save.
The new dynamic tag is created. You can select it from the list of tags while creating a search filter.
(Optional) To edit the process of a predefined dynamic tag
As an administrator of BMC Helix Innovation Studio, you can edit processes that define dynamic tags provided by default.
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Click the BMC Chatbot application to edit the following predefined dynamic tags:
- Get Company
- Get Department
- Get Region
- Get Site
- Get Support groups
- Click the Shared Services application to edit Get Knowledge Set and Get Line of Business dynamic tags.
Click the Processes tab and select the process of the predefined dynamic tag that you want to edit. For example, select CONTENT TAG Get Region.
- On the canvas, click the Get Records by Query element.
- On the GENERAL tab, in the OUTPUT MAP section, to add the process output parameter, click Click to build an expression for the Source parameter.
- In the expression builder, edit the defined expression that is returned as a tag. See the following image for the example edited structure of the dynamic tag:
- Click Save.
To create a search filter
- Log in to BMC Helix Innovation Studio and click Administration.
- Select Knowledge Management > Search filters.
- On the Search filters page, click New search filter.
- Enter the name for a search filter in the Name field.
- To define the Filter criteria, click Click to build an expression.
The expression builder is opened in a new window. - Write an expression with tags by using either of the following options based on your needs:
- To create a simple filter that doesn't combine tags by using operators: Click
to add and select one or multiple article tags from the list of available tags to create a simple filter that doesn't combine tags by using operators. With this search filters, only articles that include the selected tag will be returned.
- To create a complex filter: Select one or more logical operators, such as AND, OR, or NOT, and build a logical expression for the filter criteria by using selected tags.
To build an advanced search filter, use parentheses to combine the operators and tags. The following examples illustrate the combinations:Single operator to return articles related to HR and specifically about benefits:
Line of Business = HR AND Category = Benefits.Multiple operators to return articles for Finance users in the US, excluding archived content:
(Line of Business = Finance AND Region = US) AND NOT (Knowledge Set = Archived)
- To create a simple filter that doesn't combine tags by using operators: Click
Click OK to save the expression.
The following image shows a sample search filter:- Click Save.
You have created the search filter, which is displayed on the Search filters page. To modify a created search filter, open the filter by clicking its name, and click the expression.
Considerations and limitations for creating search filters
- Only existing static and dynamic tags are shown in the Available Values list. The list is organized into two sections: Tags and Dynamic Tags.
- You can combine static and dynamic tags in a search filter along with the operators. However, you can add new static tags to the articles or create custom dynamic tags. The tags must be between 3 and 256 characters. They can not start with white space characters, and can not consist only of white space characters. Tags do not support single quotes or double quotes characters. For instructions on how to create a dynamic tag, see (Optional) To create a dynamic tag.
- You can add up to a maximum of 20 tags when creating a combined search query.
- If the expression for the filter criteria is invalid, an error message appears when saving the filter.
- When you edit existing filters, the Save button becomes available only after you make any changes to the filter.
Upgrade scenario
The upgrade from version 25.2 to 25.3 or later ensures that existing filters are preserved and transitioned to the new format without data loss, provided the data meets the required conditions. In version 25.3 and later, the existing fields, such as Tags, Dynamic tags, and Operator are retained. No data is deleted. A new field, Query expression, is added to the record definition. For a smooth upgrade, consider the following guidelines:
- All tags should be listed in the correct syntax, such as comma-separated format, and enclosed in double quotes.
- The total number of tags used in a filter should not exceed 20.
- Avoid manually editing the old fields after the upgrade, as doing so might interfere with the automatic population of the new field.
- If data isn't fetched or errors occur, the upgrade may fail. Verify data and contact BMC Support if needed.
Upgrade behavior for search filters across applications
In case of BMC Helix Virtual Agent, during the upgrade from version 25.2 to 25.3 or later, the data is retrieved and populated the first time you open a search filter via Administration > Knowledge Management > Search filters. To verify the populated data, navigate to Workspace > Applications > BMC Chatbot > Records > ComAround Search Filter. You will see the fetched records in the list.
Troubleshooting
Issue | Cause and resolution |
When you try to save a filter, the following error message appears:![]() | The filter criteria expression is invalid. Review and correct the syntax and logic of the expression before attempting to save it again. |
When the number of tags in your query exceeds 20, error message appears:![]() | A maximum of 20 tags can be used in a combined search query. Edit the expression to ensure that it includes no more than 20 tags. |
Filter creation fails when the query expression exceeds the specified limit of the field value. | You can modify the default settings by following these steps:
|
Where to go from here
After you create a search filter, you must enable it for your BMC application.
Action | Reference |
---|---|
To enable the search filter for BMC Helix Virtual Agent | |
To enable the search filter for BMC Helix Digital Workplace Advanced | |
To enable the search settings in BMC HelixGPT to search and filter across multiple knowledge search providers |