public static final class Query.IgnorePlurals
extends Object
A value of the ignorePlurals setting. Can represent either a boolean or a list of language codes, see https://www.algolia.com/doc/faq/searching/how-does-ignoreplurals-work.
| Modifier and Type | Field and Description |
|---|---|
boolean |
enabled
Whether plurals are ignored.
|
List<String> |
languageCodes
A list containing every active language’s code.
|
| Constructor and Description |
|---|
IgnorePlurals(boolean b)
Construct an IgnorePlurals object for a boolean value.
|
IgnorePlurals(Collection<String> codes)
Construct an IgnorePlurals object for a
Collection of language codes. |
IgnorePlurals(String... codes)
Construct an IgnorePlurals object for some language codes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public final boolean enabled
Whether plurals are ignored.
@Nullable public final List<String> languageCodes
A list containing every active language’s code. When null, all supported languages are be used.
public IgnorePlurals(boolean b)
Construct an IgnorePlurals object for a boolean value.
b - if true, the engine will ignore plurals in all supported languages.public IgnorePlurals(@Nullable
Collection<String> codes)
Construct an IgnorePlurals object for a Collection of language codes.
codes - a list of language codes to ignore plurals from. if null, the engine will ignore plurals in all supported languages.public IgnorePlurals(@Nullable
String... codes)
Construct an IgnorePlurals object for some language codes.
codes - one or several language codes to ignore plurals from. if null, the engine will ignore plurals in all supported languages.