If a property specified in keywordSearchPropertyNames is single-valued—for example, of type String—the keyword search algorithm uses the query QueryBuilder.CONTAINS to examine each target value and see if it appears anywhere within the property’s current value. For example, given a keywordString property of type String, a keyword search for the values red, green, and blue generates this query:

keywordString CONTAINS "red"
OR keywordString CONTAINS "green"
OR keywordString CONTAINS "blue"

Because CONTAINS performs a substring match, this query returns true for an item whose keywordString has the value reduced calorie, because it contains the substring red.

 
loading table of contents...