StructuredSearchDetails¶
-
class
oci.marketplace.models.StructuredSearchDetails(**kwargs)¶ Bases:
oci.marketplace.models.search_listings_details.SearchListingsDetailsA request that uses Search’s structured query language to specify filter conditions to apply to search listings. For more information about writing search queries, see Search Language Syntax.
Attributes
MATCHING_CONTEXT_TYPE_HIGHLIGHTSstr(object=’’) -> str MATCHING_CONTEXT_TYPE_NONEstr(object=’’) -> str TYPE_FREE_TEXTstr(object=’’) -> str TYPE_STRUCTUREDstr(object=’’) -> str matching_context_typeGets the matching_context_type of this SearchListingsDetails. query[Required] Gets the query of this StructuredSearchDetails. type[Required] Gets the type of this SearchListingsDetails. Methods
__init__(**kwargs)Initializes a new StructuredSearchDetails object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
MATCHING_CONTEXT_TYPE_HIGHLIGHTS= 'HIGHLIGHTS'¶
-
MATCHING_CONTEXT_TYPE_NONE= 'NONE'¶
-
TYPE_FREE_TEXT= 'FreeText'¶
-
TYPE_STRUCTURED= 'Structured'¶
-
__init__(**kwargs)¶ Initializes a new StructuredSearchDetails object with values from keyword arguments. The default value of the
typeattribute of this class isStructuredand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - type (str) – The value to assign to the type property of this StructuredSearchDetails. Allowed values for this property are: “FreeText”, “Structured”
- matching_context_type (str) – The value to assign to the matching_context_type property of this StructuredSearchDetails. Allowed values for this property are: “NONE”, “HIGHLIGHTS”
- query (str) – The value to assign to the query property of this StructuredSearchDetails.
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
matching_context_type¶ Gets the matching_context_type of this SearchListingsDetails. The type of matching context returned in the response. If you specify HIGHLIGHTS, then the service will highlight fragments in its response. The default value is NONE.
Allowed values for this property are: “NONE”, “HIGHLIGHTS”
Returns: The matching_context_type of this SearchListingsDetails. Return type: str
-
query¶ [Required] Gets the query of this StructuredSearchDetails. The structured query describing which resources to search for.
Returns: The query of this StructuredSearchDetails. Return type: str
-
type¶ [Required] Gets the type of this SearchListingsDetails. The type of SearchDetails, whether FreeText or Structured.
Allowed values for this property are: “FreeText”, “Structured”
Returns: The type of this SearchListingsDetails. Return type: str
-