public static enum MultipageSearchEngine.SearchMode extends Enum<MultipageSearchEngine.SearchMode>
Enum Constant and Description |
---|
CONSERVATIVE
In this mode, an initial search request is performed to estimate the number of
documents available on the server.
|
SPECULATIVE
In this mode, the number of requested documents is divided by the maximum
number of documents the search engine can return in a single request.
|
Modifier and Type | Method and Description |
---|---|
static MultipageSearchEngine.SearchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MultipageSearchEngine.SearchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MultipageSearchEngine.SearchMode CONSERVATIVE
public static final MultipageSearchEngine.SearchMode SPECULATIVE
Note that speculative threads cause larger load on the search service and will exhaust your request pool quicker (if it is limited).
public static MultipageSearchEngine.SearchMode[] values()
for (MultipageSearchEngine.SearchMode c : MultipageSearchEngine.SearchMode.values()) System.out.println(c);
public static MultipageSearchEngine.SearchMode 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 null