If a property specified in keywordSearchPropertyNames is multi-valued—for example, of type Stirng[]—the keyword search algorithm uses the query QueryBuilder.INCLUDESANY to perform a single search for an exact match between any property value and any search value. For example, given a keywords property of type String[], a keyword search for the values red, green, and blue generates this query:

keywords INCLUDES ANY ["red","green","blue"]

INCLUDES ANY searches only for exact matches, so this query does not return an item whose keywords contain substrings of the specified values. For example, while reduced fat contains a substring of the search value red, it is not an exact match and does not satisfy the query.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices