|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<MultipageSearchEngine.SearchMode>
org.carrot2.source.MultipageSearchEngine.SearchMode
public static enum MultipageSearchEngine.SearchMode
Search mode for data source components that implement parallel request to some search service.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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).
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||