public final class SearchField extends Object
| Constructor and Description |
|---|
SearchField(String name,
SearchFieldDataType type)
Constructor of
SearchField. |
| Modifier and Type | Method and Description |
|---|---|
LexicalAnalyzerName |
getAnalyzerName()
Get the analyzer property: The name of the analyzer to use for the
field.
|
List<SearchField> |
getFields()
Get the fields property: A list of sub-fields if this is a field of type
Edm.ComplexType or Collection(Edm.ComplexType).
|
LexicalAnalyzerName |
getIndexAnalyzerName()
Get the indexAnalyzer property: The name of the analyzer used at
indexing time for the field.
|
String |
getName()
Get the name property: The name of the field, which must be unique
within the fields collection of the index or parent field.
|
LexicalAnalyzerName |
getSearchAnalyzerName()
Get the searchAnalyzer property: The name of the analyzer used at search
time for the field.
|
List<String> |
getSynonymMapNames()
Get the synonymMaps property: A list of the names of synonym maps to
associate with this field.
|
SearchFieldDataType |
getType()
Get the type property: The data type of the field.
|
Boolean |
isFacetable()
Get the facetable property: A value indicating whether to enable the
field to be referenced in facet queries.
|
Boolean |
isFilterable()
Get the filterable property: A value indicating whether to enable the
field to be referenced in $filter queries.
|
Boolean |
isHidden()
Get the hidden property: A value indicating whether the field will be
returned in a search result.
|
Boolean |
isKey()
Get the key property: A value indicating whether the field uniquely
identifies documents in the index.
|
Boolean |
isSearchable()
Get the searchable property: A value indicating whether the field is
full-text searchable.
|
Boolean |
isSortable()
Get the sortable property: A value indicating whether to enable the
field to be referenced in $orderby expressions.
|
SearchField |
setAnalyzerName(LexicalAnalyzerName analyzerName)
Set the analyzer property: The name of the analyzer to use for the
field.
|
SearchField |
setFacetable(Boolean facetable)
Set the facetable property: A value indicating whether to enable the
field to be referenced in facet queries.
|
SearchField |
setFields(List<SearchField> fields)
Set the fields property: A list of sub-fields if this is a field of type
Edm.ComplexType or Collection(Edm.ComplexType).
|
SearchField |
setFields(SearchField... fields)
Set the fields property: A list of sub-fields if this is a field of type
Edm.ComplexType or Collection(Edm.ComplexType).
|
SearchField |
setFilterable(Boolean filterable)
Set the filterable property: A value indicating whether to enable the
field to be referenced in $filter queries.
|
SearchField |
setHidden(Boolean hidden)
Set the hidden property: A value indicating whether the field will be
returned in a search result.
|
SearchField |
setIndexAnalyzerName(LexicalAnalyzerName indexAnalyzerName)
Set the indexAnalyzer property: The name of the analyzer used at
indexing time for the field.
|
SearchField |
setKey(Boolean key)
Set the key property: A value indicating whether the field uniquely
identifies documents in the index.
|
SearchField |
setSearchable(Boolean searchable)
Set the searchable property: A value indicating whether the field is
full-text searchable.
|
SearchField |
setSearchAnalyzerName(LexicalAnalyzerName searchAnalyzerName)
Set the searchAnalyzer property: The name of the analyzer used at search
time for the field.
|
SearchField |
setSortable(Boolean sortable)
Set the sortable property: A value indicating whether to enable the
field to be referenced in $orderby expressions.
|
SearchField |
setSynonymMapNames(List<String> synonymMapNames)
Set the synonymMaps property: A list of the names of synonym maps to
associate with this field.
|
SearchField |
setSynonymMapNames(String... synonymMapNames)
Set the synonymMaps property: A list of the names of synonym maps to
associate with this field.
|
public SearchField(String name, SearchFieldDataType type)
SearchField.name - The name of the field, which must be unique within the fields collection
of the index or parent field.type - The data type of the field. Possible values include: 'String', 'Int32',
'Int64', 'Double', 'Boolean', 'DateTimeOffset', 'GeographyPoint',
'Complex'public String getName()
public SearchFieldDataType getType()
public Boolean isKey()
public SearchField setKey(Boolean key)
key - the key value to set.public Boolean isSearchable()
public SearchField setSearchable(Boolean searchable)
searchable - the searchable value to set.public Boolean isFilterable()
public SearchField setFilterable(Boolean filterable)
filterable - the filterable value to set.public Boolean isSortable()
public SearchField setSortable(Boolean sortable)
sortable - the sortable value to set.public Boolean isFacetable()
public SearchField setFacetable(Boolean facetable)
facetable - the facetable value to set.public LexicalAnalyzerName getAnalyzerName()
public SearchField setAnalyzerName(LexicalAnalyzerName analyzerName)
analyzerName - the analyzer name to set.public LexicalAnalyzerName getSearchAnalyzerName()
public SearchField setSearchAnalyzerName(LexicalAnalyzerName searchAnalyzerName)
searchAnalyzerName - the searchAnalyzer name to set.public LexicalAnalyzerName getIndexAnalyzerName()
public SearchField setIndexAnalyzerName(LexicalAnalyzerName indexAnalyzerName)
indexAnalyzerName - the indexAnalyzer name to set.public List<String> getSynonymMapNames()
public SearchField setSynonymMapNames(String... synonymMapNames)
synonymMapNames - the synonymMap names to set.public SearchField setSynonymMapNames(List<String> synonymMapNames)
synonymMapNames - the synonymMap names to set.public List<SearchField> getFields()
public SearchField setFields(SearchField... fields)
fields - the fields value to set.public SearchField setFields(List<SearchField> fields)
fields - the fields value to set.public Boolean isHidden()
public SearchField setHidden(Boolean hidden)
hidden - the hidden value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.