|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.browser.SearchOptions
public class SearchOptions
This class is used for object searches, to specify the search parameters.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_RESULTS
Default maximum number of search results if not explicitly set by setMaxResults(int). |
| Constructor Summary | |
|---|---|
SearchOptions()
Constructor |
|
| Method Summary | |
|---|---|
Language |
getLanguage()
Gets the desired Language of the search results. |
int |
getMaxResults()
Gets the maximum number of search results. |
Boolean |
getUseNormalizedWordSearch()
Returns whether normalized word search should be used. |
int |
getWordCountThreshold()
Returns the word count threshold. |
double |
getWordSearchScoreThreshold()
Returns the word search ranking threshold score - all concepts ranked below this score will not be displayed. |
void |
setLanguage(Language language)
Sets the desired Language of the search results. |
void |
setMaxResults(int maxResults)
Sets the maximum number of search results. |
void |
setUseNormalizedWordSearch(Boolean useNormalizedWordSearch)
Indicates whether normalized word search should be used. |
void |
setWordCountThreshold(int wordCountThreshold)
Sets the word count threshold. |
void |
setWordSearchScoreThreshold(double wordSearchScoreThreshold)
Sets the word search ranking threshold score - all concepts ranked below this score will not be displayed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_RESULTS
setMaxResults(int).
| Constructor Detail |
|---|
public SearchOptions()
| Method Detail |
|---|
public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults - maximum number of search resultspublic Language getLanguage()
Language of the search results.
Language of the search results.public void setLanguage(Language language)
Language of the search results.
language - desired Language of the search resultspublic double getWordSearchScoreThreshold()
public void setWordSearchScoreThreshold(double wordSearchScoreThreshold)
wordSearchScoreThreshold - thresholdpublic int getWordCountThreshold()
public void setWordCountThreshold(int wordCountThreshold)
wordCountThreshold - public Boolean getUseNormalizedWordSearch()
true if normalized word search should be used
false otherwisepublic void setUseNormalizedWordSearch(Boolean useNormalizedWordSearch)
useNormalizedWordSearch - boolean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||