Collapse
Submit a Service Request
Contact Information for Technical Support
My Service Notifications
Find on data list attribute returning unexpected results
Answer ID 12534 |
Last Review Date 01/27/2023
Why is Find returning answers that don't have the data list item the user selected?
Environment:
- Oracle B2C Service sites with Knowledge Advanced only
- All versions
- Find in content type, Authoring tool
Issue:
Our content type schema has a list element with attribute-level searching enabled. If we go to the content tab in Authoring, select Find, and pick one option for that field, we get additional articles that don't match.
Resolution:
In the data list, do not have the value of one option be a word (or words) that is also contained within the value of other options.
Cause:
List was configured as follows.
Display string | Value |
---|---|
Option 1 | foo |
Option 2 | foo bar |
Option 3 | foo baz |
The attribute is indexed as text by the value of the selected list item(s) in a given article.
When you select Option 1 in Find, it searches that field like it would search any text field, for the "hidden" text "foo." All the articles that have Option 2 and/or Option 3 selected also have the word "foo" in that field. That is why they are returned.