public class MetadataIndexingOptions extends Object
Provides options for indexing metadata fields.
Learn more
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFieldName()
Gets the default field name used to index empty field names.
|
boolean |
getIndexingEmptyNames()
Gets a value indicating whether to index empty field names or not.
|
boolean |
getIndexingEmptyValues()
Gets a value indicating whether to index empty field values or not.
|
int |
getMaxBytesToIndexField()
Gets the maximum number of values in an array of type byte to index the field.
|
int |
getMaxDoublesToIndexField()
Gets the maximum number of values in an array of type double to index the field.
|
int |
getMaxIntsToIndexField()
Gets the maximum number of values in an array of type int to index the field.
|
int |
getMaxLongsToIndexField()
Gets the maximum number of values in an array of type long to index the field.
|
String |
getSeparatorBetweenValues()
Gets the separator between values in a field of type array.
|
String |
getSeparatorInCompoundName()
Gets the separator in the compound name of a field.
|
void |
setDefaultFieldName(String value)
Sets the default field name used to index empty field names.
|
void |
setIndexingEmptyNames(boolean value)
Sets a value indicating whether to index empty field names or not.
|
void |
setIndexingEmptyValues(boolean value)
Sets a value indicating whether to index empty field values or not.
|
void |
setMaxBytesToIndexField(int value)
Sets the maximum number of values in an array of type byte to index the field.
|
void |
setMaxDoublesToIndexField(int value)
Sets the maximum number of values in an array of type double to index the field.
|
void |
setMaxIntsToIndexField(int value)
Sets the maximum number of values in an array of type int to index the field.
|
void |
setMaxLongsToIndexField(int value)
Sets the maximum number of values in an array of type long to index the field.
|
void |
setSeparatorBetweenValues(String value)
Sets the separator between values in a field of type array.
|
void |
setSeparatorInCompoundName(String value)
Sets the separator in the compound name of a field.
|
public final boolean getIndexingEmptyValues()
Gets a value indicating whether to index empty field values or not.
The default value is true
.
public final void setIndexingEmptyValues(boolean value)
Sets a value indicating whether to index empty field values or not.
The default value is true
.
value
- A value indicating whether to index empty field values or not.public final boolean getIndexingEmptyNames()
Gets a value indicating whether to index empty field names or not.
The default value is true
.
public final void setIndexingEmptyNames(boolean value)
Sets a value indicating whether to index empty field names or not.
The default value is true
.
value
- A value indicating whether to index empty field names or not.public final String getDefaultFieldName()
Gets the default field name used to index empty field names.
The default value is "unknown"
.
public final void setDefaultFieldName(String value)
Sets the default field name used to index empty field names.
The default value is "unknown"
.
value
- The default field name used to index empty field names.public final String getSeparatorInCompoundName()
Gets the separator in the compound name of a field.
The default value is "."
.
public final void setSeparatorInCompoundName(String value)
Sets the separator in the compound name of a field.
The default value is "."
.
value
- The separator in the compound name of a field.public final int getMaxBytesToIndexField()
Gets the maximum number of values in an array of type byte to index the field.
The default value is Integer.MAX_VALUE
.
public final void setMaxBytesToIndexField(int value)
Sets the maximum number of values in an array of type byte to index the field.
The default value is Integer.MAX_VALUE
.
value
- The maximum number of values in an array of type byte to index the field.public final int getMaxIntsToIndexField()
Gets the maximum number of values in an array of type int to index the field.
The default value is Integer.MAX_VALUE
.
public final void setMaxIntsToIndexField(int value)
Sets the maximum number of values in an array of type int to index the field.
The default value is Integer.MAX_VALUE
.
value
- The maximum number of values in an array of type int to index the field.public final int getMaxLongsToIndexField()
Gets the maximum number of values in an array of type long to index the field.
The default value is Integer.MAX_VALUE
.
public final void setMaxLongsToIndexField(int value)
Sets the maximum number of values in an array of type long to index the field.
The default value is Integer.MAX_VALUE
.
value
- The maximum number of values in an array of type long to index the field.public final int getMaxDoublesToIndexField()
Gets the maximum number of values in an array of type double to index the field.
The default value is Integer.MAX_VALUE
.
public final void setMaxDoublesToIndexField(int value)
Sets the maximum number of values in an array of type double to index the field.
The default value is Integer.MAX_VALUE
.
value
- The maximum number of values in an array of type double to index the field.public final String getSeparatorBetweenValues()
Gets the separator between values in a field of type array. The default value is the space sign.
public final void setSeparatorBetweenValues(String value)
Sets the separator between values in a field of type array. The default value is the space sign.
value
- The separator between values in a field of type array.Copyright © 2020. All rights reserved.