public enum SearchFieldMode extends Enum<SearchFieldMode>
fields.SearchFieldConfiguration.getMode()| Enum Constant and Description |
|---|
RETRIEVABLE
Indicates that the field will NOT be indexed but only stored.
|
SEARCHABLE
Indicates that the field will be
searchable but NOT retrievable. |
SEARCHABLE_AND_RETRIEVABLE
Indicates that the field will be
searchable and retrievable. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRetrievable()
This method determines if the represented field can be
retrieved from a
SearchEntry. |
boolean |
isSearchable()
This method determines if the represented
field will be searchable so it can be
found via the SearchEngine. |
static SearchFieldMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchFieldMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchFieldMode SEARCHABLE_AND_RETRIEVABLE
searchable and retrievable. This is the default.public static final SearchFieldMode SEARCHABLE
searchable but NOT retrievable. This is useful for indexing very large texts. Please note that
highlighting only works for
retrievable fields.public static final SearchFieldMode RETRIEVABLE
SearchEngine but can be
retrieved from the result.public static SearchFieldMode[] values()
for (SearchFieldMode c : SearchFieldMode.values()) System.out.println(c);
public static SearchFieldMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isSearchable()
field will be searchable so it can be
found via the SearchEngine.true if searchable, false otherwise (hidden for searches).public boolean isRetrievable()
retrieved from a
SearchEntry.true if retrievable, false otherwise (can be found but NOT retrieved).Copyright © 2001–2016 mmm-Team. All rights reserved.