Metadata query engine search terms

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

When you perform simple queries while the metadata query engine is active, you need to specify search terms that are complete alphabetic or complete numeric values. For example, a simple query that contains the search term 2012 finds the object named Q1_2012.ppt. A simple query that contains the search term 12 does not find this object.

The metadata query engine treats strings of all-alphabetic characters and strings of all-numeric characters as search terms and treats all other characters as search term separators, both in the text you enter and in text being searched. Therefore, test123 is treated as two search terms, test and 123. Similarly, left-handed is treated as two separate search terms, left and handed. Therefore, an any search for test matches test123 and an any search for left matches left-handed.

The metadata query engine treats multiple strings that contains all-alphabetic characters as multiple search terms. If multiple strings are enclosed inside brackets and those strings are separated by any special characters, these special characters will be used as search term separators. For example, the term (left-handed) inside brackets, is treated as two search terms - left and handed.

The search string (left-handed) matches these strings:
  • Both words left and handed.
  • Either word left or handed.

Examples that match these strings:

left-xxxx
left xxxx
xxxx-left
xxxx left
handed-xxxx
handed xxxx
xxxx-handed
xxxx handed
left xxx handed

Examples that does not match these strings:

lefth andled
lef thanded
lefth-andled
lef-thanded

The metadata query engine treats any text that is inside double quotes as a phrase. A phrase is separated into a sequence of terms based on all-alphabetic or all-numeric words that are separated either by white spaces or special characters. The resulting query will match only if the search text has the same terms in the same order and number of occurrences as in the search phrase. For example, the search string "left-handed" is treated as a phrase because it is inside double quotes.

The search string "left-then-right" matches these strings:
  • Both words left then and right.
  • All words left, then, and right.
  • All words right, then left, and then right.
The search string "left-then-right" does not match these strings:
  • Both words leftthen and right.
  • All words right and thenleft.

The metadata query engine treats only first string if the search string contain spaces or any special characters and the entire query string is not inside double quotes. For example, the search string left-handed is not treated as a phrase because it is not inside double quotes. In this instance, the metadata query engine looks for terms that matches only string left and ignores the string handed.

The search string left-handed matches these strings:
  • left-handed
  • left handed
The search string left-handed does not match these strings:
  • handed right
  • right handed
  • handed xxxx
  • handed-xxxx
Note:
  • White space, "," and "-" are considered as special characters in a query string.
  • The xxx in the examples indicates any number of characters.
  • The above mentioned search behaviors work only if custom metadata has been ingested with Pretty Print XML (properly formatted XML).