SearchKind Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum<SearchKind>
      • com.microsoft.azure.cognitiveservices.search.autosuggest.models.SearchKind

public class SearchKind

Defines values for SearchKind.

Field Summary

Modifier and Type Field and Description
final SearchKind CUSTOM_SEARCH

Static value CustomSearch for SearchKind.

final SearchKind DOCUMENT_SEARCH

Static value DocumentSearch for SearchKind.

final SearchKind HISTORY_SEARCH

Static value HistorySearch for SearchKind.

final SearchKind LOCATION_SEARCH

Static value LocationSearch for SearchKind.

final SearchKind TAG_SEARCH

Static value TagSearch for SearchKind.

final SearchKind WEB_SEARCH

Static value WebSearch for SearchKind.

Method Summary

Modifier and Type Method and Description
SearchKind fromString(String name)

Creates or finds a SearchKind from its string representation.

Collection<SearchKind> values()

Field Details

public static final SearchKind CUSTOM_SEARCH= fromString("CustomSearch")

Static value CustomSearch for SearchKind.

public static final SearchKind DOCUMENT_SEARCH= fromString("DocumentSearch")

Static value DocumentSearch for SearchKind.

public static final SearchKind HISTORY_SEARCH= fromString("HistorySearch")

Static value HistorySearch for SearchKind.

public static final SearchKind LOCATION_SEARCH= fromString("LocationSearch")

Static value LocationSearch for SearchKind.

public static final SearchKind TAG_SEARCH= fromString("TagSearch")

Static value TagSearch for SearchKind.

public static final SearchKind WEB_SEARCH= fromString("WebSearch")

Static value WebSearch for SearchKind.

Method Details

fromString

public static SearchKind fromString(String name)

Creates or finds a SearchKind from its string representation.

Parameters:

name - a name to look for

Returns:

the corresponding SearchKind

values

public static Collection values()

Returns:

known SearchKind values

Applies to