public class DefaultSearchModifier extends Object implements SearchModifier
The GNU Lesser General Public License for details.
,
Serialized FormModifier and Type | Field and Description |
---|---|
private int |
maxResults
The indicator of whether the request should be ranked.
|
private boolean |
ranked
The indicator of whether the request should be ranked.
|
private static long |
serialVersionUID
Serialization ID
|
Constructor and Description |
---|
DefaultSearchModifier()
A default SearchModifier that returns all hits and does not rank the
results.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxResults() |
boolean |
isRanked() |
void |
setMaxResults(int newMaxResults)
The maximum number of results to provide.
|
void |
setRanked(boolean newRanked)
Set whether or not the search should be ranked.
|
private boolean ranked
private int maxResults
private static final long serialVersionUID
public DefaultSearchModifier()
public boolean isRanked()
isRanked
in interface SearchModifier
public void setRanked(boolean newRanked)
newRanked
- true if the search should be rankedpublic int getMaxResults()
getMaxResults
in interface SearchModifier
public void setMaxResults(int newMaxResults)
newMaxResults
- the maxResults to set