|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.source.MultipageSearchEngine.SearchRange
protected static final class MultipageSearchEngine.SearchRange
A single result window to fetch.
| Field Summary | |
|---|---|
int |
results
How many results to fetch. |
int |
start
Start index from which to search (inclusive). |
| Constructor Summary | |
|---|---|
MultipageSearchEngine.SearchRange(int start,
int results)
Create a new search range. |
|
| Method Summary | |
|---|---|
static MultipageSearchEngine.SearchRange[] |
getSearchRanges(int start,
int results,
int maxIndex,
int resultsPerPage,
boolean incrementByPage)
Given an unconstrained start and results count, adjust it to the allowed window and split into page buckets if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int start
public final int results
| Constructor Detail |
|---|
public MultipageSearchEngine.SearchRange(int start,
int results)
start - Start index of the first result to return (0-based).results - The number of results to return. The actual number of results
returned by a search service may be lower than this number.| Method Detail |
|---|
public static MultipageSearchEngine.SearchRange[] getSearchRanges(int start,
int results,
int maxIndex,
int resultsPerPage,
boolean incrementByPage)
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||