public static final class Query.IgnorePlurals
extends Object
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
@Nullable public final List<String> languageCodes
null
, all supported languages are be used.public IgnorePlurals(boolean b)
b
- if true
, the engine will ignore plurals in all supported languages.public IgnorePlurals(@Nullable Collection<String> codes)
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)
codes
- one or several language codes to ignore plurals from.
if null
, the engine will ignore plurals in all supported languages.