SearchFieldDataType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. search. documents. indexes. models. SearchFieldDataType
- com.
- com.
public final class SearchFieldDataType
extends ExpandableStringEnum<SearchFieldDataType>
Defines the data type of a field in a search index.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Search |
BOOLEAN
Indicates that a field contains a Boolean value (true or false). |
static final
Search |
BYTE
Indicates that a field contains a 8-bit unsigned integer. |
static final
Search |
COMPLEX
Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. |
static final
Search |
DATE_TIME_OFFSET
Indicates that a field contains a date/time value, including timezone information. |
static final
Search |
DOUBLE
Indicates that a field contains an IEEE double-precision floating point number. |
static final
Search |
GEOGRAPHY_POINT
Indicates that a field contains a geo-location in terms of longitude and latitude. |
static final
Search |
HALF
Indicates that a field contains a half-precision floating point number. |
static final
Search |
INT16
Indicates that a field contains a 16-bit signed integer. |
static final
Search |
INT32
Indicates that a field contains a 32-bit signed integer. |
static final
Search |
INT64
Indicates that a field contains a 64-bit signed integer. |
static final
Search |
SBYTE
Indicates that a field contains a 8-bit signed integer. |
static final
Search |
SINGLE
Indicates that a field contains a single-precision floating point number. |
static final
Search |
STRING
Indicates that a field contains a string. |
Constructor Summary
Constructor | Description |
---|---|
SearchFieldDataType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Search |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Search |
collection(SearchFieldDataType dataType)
Returns a collection of a specific Search |
static
Search |
fromString(String name)
Creates or finds a Search |
static
Collection<Search |
values()
Gets known Search |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
BOOLEAN
public static final SearchFieldDataType BOOLEAN
Indicates that a field contains a Boolean value (true or false).
BYTE
public static final SearchFieldDataType BYTE
Indicates that a field contains a 8-bit unsigned integer. This is only valid when used with Collection(Edm.Byte).
COMPLEX
public static final SearchFieldDataType COMPLEX
Indicates that a field contains one or more complex objects that in turn have sub-fields of other types.
DATE_TIME_OFFSET
public static final SearchFieldDataType DATE_TIME_OFFSET
Indicates that a field contains a date/time value, including timezone information.
DOUBLE
public static final SearchFieldDataType DOUBLE
Indicates that a field contains an IEEE double-precision floating point number.
GEOGRAPHY_POINT
public static final SearchFieldDataType GEOGRAPHY_POINT
Indicates that a field contains a geo-location in terms of longitude and latitude.
HALF
public static final SearchFieldDataType HALF
Indicates that a field contains a half-precision floating point number. This is only valid when used with Collection(Edm.Half).
INT16
public static final SearchFieldDataType INT16
Indicates that a field contains a 16-bit signed integer. This is only valid when used with Collection(Edm.Int16).
INT32
public static final SearchFieldDataType INT32
Indicates that a field contains a 32-bit signed integer.
INT64
public static final SearchFieldDataType INT64
Indicates that a field contains a 64-bit signed integer.
SBYTE
public static final SearchFieldDataType SBYTE
Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte).
SINGLE
public static final SearchFieldDataType SINGLE
Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single).
STRING
public static final SearchFieldDataType STRING
Indicates that a field contains a string.
Constructor Details
SearchFieldDataType
@Deprecated
public SearchFieldDataType()
Deprecated
Creates a new instance of SearchFieldDataType value.
Method Details
collection
public static SearchFieldDataType collection(SearchFieldDataType dataType)
Returns a collection of a specific SearchFieldDataType.
Parameters:
Returns:
fromString
public static SearchFieldDataType fromString(String name)
Creates or finds a SearchFieldDataType from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known SearchFieldDataType values.
Returns:
Applies to
Azure SDK for Java