|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchEngine
A SearchEngine is an external source that can be searched. SearchResults may or may not
be parseable by our client (in a computer readable format such as XML in the form of Atom or
RSS).
getDescriptorURL(). NOTE: this class is NOT a complete representation of
what may be found on the descriptor file.
SearchResult,
SearchEngineManager| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Get a description of the search engine. |
java.lang.String |
getDescriptorURL()
Get the URL of the XML opensearch descriptor file. |
java.lang.String |
getExternalSearchableURL(java.lang.String searchTerms)
Get the externral search URL with the {searchTerms} token substitued by the argument. |
java.lang.String |
getExternalSearchURL()
Get an OpenSearch compliant URL that can be queried against. |
java.lang.String |
getIconURL()
Get the URL of an icon described in the descriptor file. |
int |
getMaxResultCount()
The maximum number of results you want returned from #performSearch. |
java.lang.String |
getQueryTestTerm()
Get the test term that is used for performing the test query. |
java.lang.String |
getSearchableURL(java.lang.String searchTerms)
Get the search URL with the {searchTerms} token substitued by the argument. |
java.lang.String |
getSearchHttpMethod()
Get the Http method (i.e. |
java.lang.String |
getSearchResultContentType()
Get the content type (i.e. text/xml) of search results. |
java.lang.String |
getSearchURL()
Get an OpenSearch compliant URL that can be queried against. |
java.lang.String |
getShortName()
Get the short name of the search engine. |
boolean |
isAuthenticated()
Check whether or not the search result feed requires HTTP authentication. |
boolean |
isEnabled()
Get whether or not this engine will appear in the view. |
boolean |
isQueryResultParseable()
Check whether or not the search result content type is machine parseable (an XML content type such as would be used for RSS or Atom content) or not (a nonstrict-XML type such as HTML content). |
java.util.Collection<SearchResult> |
performSearch(java.lang.String searchTerms)
Performs a query agaist the search URL with the specified search terms. |
boolean |
performTestQuery()
Performs a test query using the query test term. |
void |
setEnabled(boolean enabled)
Set whether or not this engine will appear in the view. |
void |
setMaxResultCount(int maxResultCount)
The maximum number of results you want returned from #performSearch. |
void |
setPassword(java.lang.String password)
Set a password for authenticated search feeds. |
void |
setQueryTestTerm(java.lang.String term)
Set the test term that is used for performing the test query. |
void |
setUsername(java.lang.String username)
Set a username for authenticated search feeds. |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getID, getObjectType |
| Method Detail |
|---|
java.lang.String getShortName()
java.lang.String getDescription()
java.lang.String getDescriptorURL()
java.lang.String getIconURL()
java.lang.String getSearchResultContentType()
java.lang.String getSearchHttpMethod()
java.lang.String getSearchURL()
java.lang.String getExternalSearchURL()
boolean isQueryResultParseable()
boolean isAuthenticated()
java.lang.String getSearchableURL(java.lang.String searchTerms)
searchTerms - A search term to use for token substitution.
java.lang.String getExternalSearchableURL(java.lang.String searchTerms)
searchTerms - A search term to use for token substitution.
void setUsername(java.lang.String username)
username - a username.void setPassword(java.lang.String password)
password - a username.boolean performTestQuery()
java.util.Collection<SearchResult> performSearch(java.lang.String searchTerms)
searchTerms - a term or terms to query against.
java.lang.String getQueryTestTerm()
void setQueryTestTerm(java.lang.String term)
term - a search term.void setEnabled(boolean enabled)
enabled - Whether or not the search engine is enabled.void setMaxResultCount(int maxResultCount)
maxResultCount - A positive int.int getMaxResultCount()
boolean isEnabled()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||