|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.search.SearchResults
public class SearchResults
A container for the results (hits) of a search.
| Constructor Summary | |
|---|---|
SearchResults()
|
|
| Method Summary | |
|---|---|
void |
add(SearchHit hit)
Adds a hit to the collection of hits. |
java.util.List |
getHits()
Gets a collection containing all of the hits. |
java.lang.String |
getMessage()
Gets the message associated with these results. |
int |
getNumberOfHits()
Gets the number of hits that the query returned. |
java.lang.String |
getQuery()
Gets the query that was used to generate these results. |
void |
setMessage(java.lang.String s)
Gets the message associated with these results. |
void |
setQuery(java.lang.String s)
Sets the query that was used to generate these results. |
void |
sortByDateDescending()
Sorts the search results by date, in reverse order. |
void |
sortByScoreDescending()
Sorts the search results by score, in reverse order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchResults()
| Method Detail |
|---|
public java.lang.String getQuery()
public void setQuery(java.lang.String s)
s - the original querypublic java.lang.String getMessage()
public void setMessage(java.lang.String s)
s - the message (can be null)public void add(SearchHit hit)
hit - a SearchHit instancepublic int getNumberOfHits()
public java.util.List getHits()
public void sortByScoreDescending()
public void sortByDateDescending()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||