SearchContext¶
-
class
oci.resource_search.models.
SearchContext
(**kwargs)¶ Bases:
object
Contains search context, such as highlighting, for found resources.
Methods
__init__
(**kwargs)Initializes a new SearchContext object with values from keyword arguments. Attributes
highlights
Gets the highlights of this SearchContext. -
__init__
(**kwargs)¶ Initializes a new SearchContext object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: highlights (dict(str, list[str])) – The value to assign to the highlights property of this SearchContext.
-
highlights
¶ Gets the highlights of this SearchContext. Describes what in each field matched the search criteria by showing highlighted values, but only for free text searches or for structured queries that use a MATCHING clause. The list of strings represents fragments of values that matched the query conditions. Highlighted values are wrapped with <h1>..</h1> tags. All values are HTML-encoded (except <h1> tags).
Returns: The highlights of this SearchContext. Return type: dict(str, list[str])
-