# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.1 1.2.0 1.1.1 1.0.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy.

The search strategy for annotations value of the `key`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence_score_index_config

    def confidence_score_index_config() -> ::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig

**Returns**

- ([::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-DataSchemaDetails-SearchStrategy-ConfidenceScoreIndexConfig)) --- Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

### #confidence_score_index_config=

    def confidence_score_index_config=(value) -> ::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-DataSchemaDetails-SearchStrategy-ConfidenceScoreIndexConfig)) --- Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.
**Returns**

- ([::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-DataSchemaDetails-SearchStrategy-ConfidenceScoreIndexConfig)) --- Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

### #search_strategy_type

    def search_strategy_type() -> ::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType

**Returns**

- ([::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-DataSchemaDetails-SearchStrategy-SearchStrategyType)) --- The type of search strategy to be applied on the `key` above. The allowed `search_strategy_type` is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported `search_strategy_type` for data types will result in INVALID_ARGUMENT error.

### #search_strategy_type=

    def search_strategy_type=(value) -> ::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-DataSchemaDetails-SearchStrategy-SearchStrategyType)) --- The type of search strategy to be applied on the `key` above. The allowed `search_strategy_type` is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported `search_strategy_type` for data types will result in INVALID_ARGUMENT error.
**Returns**

- ([::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-DataSchemaDetails-SearchStrategy-SearchStrategyType)) --- The type of search strategy to be applied on the `key` above. The allowed `search_strategy_type` is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported `search_strategy_type` for data types will result in INVALID_ARGUMENT error.