Vision AI v1 API - Class SearchCriteriaProperty (1.0.0-beta01)

public sealed class SearchCriteriaProperty : IMessage<SearchCriteriaProperty>, IEquatable<SearchCriteriaProperty>, IDeepCloneable<SearchCriteriaProperty>, IBufferMessage, IMessage

Reference documentation and code samples for the Vision AI v1 API class SearchCriteriaProperty.

Central configuration for custom search criteria.

Inheritance

object > SearchCriteriaProperty

Namespace

Google.Cloud.VisionAI.V1

Assembly

Google.Cloud.VisionAI.V1.dll

Constructors

SearchCriteriaProperty()

public SearchCriteriaProperty()

SearchCriteriaProperty(SearchCriteriaProperty)

public SearchCriteriaProperty(SearchCriteriaProperty other)
Parameter
Name Description
other SearchCriteriaProperty

Properties

MappedFields

public RepeatedField<string> MappedFields { get; }

Each mapped_field corresponds to a UGA key. To understand how this property works, take the following example. In the SearchConfig table, the user adds this entry: search_config { name: "person" search_criteria_property { mapped_fields: "player" mapped_fields: "coach" } }

Now, when a user issues a query like: criteria { field: "person" text_array { txt_values: "Tom Brady" txt_values: "Bill Belichick" } }

MWH search will return search documents where (player=Tom Brady || coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).

Property Value
Type Description
RepeatedFieldstring