|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchQueryCriteria
Criteria for searching. Use the factory methods
jiveContext.getSearchQueryManager().createSearchQueryCriteria(xxx) to get a handle on a
SearchQueryCriteria object. From there you can define criteria to use for filtering and sorting
search query results that will be used by a SearchQuery.
SearchQueryManager,
SearchQuery| Nested Class Summary | |
|---|---|
static class |
SearchQueryCriteria.SortOrder
Represents the order in which search results will be returned |
static class |
SearchQueryCriteria.SortType
Represents how search results will be sorted |
| Method Summary | |
|---|---|
void |
filterOnUser(User user)
Restricts the query results to content objects created by a specified user. |
Date |
getAfterDate()
Returns the earliest date for search results. |
Date |
getBeforeDate()
Returns the latest date for search results. |
BlogPostSearchQueryCriteria |
getBlogPostSearchQueryCriteria()
Returns the BlogPostSearchQueryCriteria that can be used to specify criteria to sort and/or filter blog post search results. |
DocumentSearchQueryCriteria |
getDocumentSearchQueryCriteria()
Returns the DocumentSearchQueryCriteria that can be used to specify criteria to sort and/or filter document search results. |
Collection<TagSet> |
getFilteredTagSets()
Returns a collection of TagSets that query results are restricted to. |
User |
getFilteredUser()
Returns the user that query results are restricted to. |
MessageSearchQueryCriteria |
getMessageSearchQueryCriteria()
Returns the MessageSearchQueryCriteria that can be used to specify criteria to sort and/or filter message search results. |
String |
getQueryString()
Returns the search query string for the SearchQuery object. |
SearchQueryCriteria.SortOrder |
getSortOrder()
Returns the sort order, which will be SearchQueryCriteria.SortOrder.ASCENDING for ascending sorting, or
SearchQueryCriteria.SortOrder.DESCENDING for descending sorting. |
SearchQueryCriteria.SortType |
getSortType()
Returns the sort type to use to sort search results. |
TaskSearchQueryCriteria |
getTaskSearchQueryCriteria()
Returns the TaskSearchQueryCriteria that can be used to specify criteria to sort and/or filter task search results. |
void |
setAfterDate(Date afterDate)
Sets the earliest date for search results. |
void |
setBeforeDate(Date beforeDate)
Sets the latest date for search results. |
void |
setFilterOnTagSets(Collection<TagSet> tagSets)
Restricts the query results to content objects containing any one of the specified TagSets. |
void |
setSortOrder(SearchQueryCriteria.SortOrder sortOrder)
Sets the sort type. |
void |
setSortType(SearchQueryCriteria.SortType sortType)
Sets the sort type to use to sort search results. |
| Method Detail |
|---|
String getQueryString()
SearchQueryManager.createSearchQueryCriteria(com.jivesoftware.community.BlogPost),
SearchQueryManager.createSearchQueryCriteria(com.jivesoftware.community.Document) or
SearchQueryManager.createSearchQueryCriteria(com.jivesoftware.community.ForumMessage)
this will method will return null.
BlogPostSearchQueryCriteria getBlogPostSearchQueryCriteria()
DocumentSearchQueryCriteria getDocumentSearchQueryCriteria()
MessageSearchQueryCriteria getMessageSearchQueryCriteria()
TaskSearchQueryCriteria getTaskSearchQueryCriteria()
Date getBeforeDate()
void setBeforeDate(Date beforeDate)
beforeDate - an upper date boundary for search results based upon modification datesDate getAfterDate()
void setAfterDate(Date afterDate)
afterDate - a lower date boundary for search results based upon modification datesUser getFilteredUser()
void filterOnUser(User user)
getUserMessages method
for a user's messages among all communities.
user - a User to restrict query results to.ThreadResultFilterCollection<TagSet> getFilteredTagSets()
TagSets that query results are restricted to. If the query is
not restricted to content objects having a specific TagSet, this method will return null.
TagSets that the query results are restricted to, or null if
there is no tagset restrictionsvoid setFilterOnTagSets(Collection<TagSet> tagSets)
TagSets. Note: this method is not intended to show all content objects with a
particular tagset. Rather, it lets you filter out search results; for example, all blog posts
matching the query "Jive rocks", but filtering out all results that don't have the specified
TagSet.
tagSets - a collection of TagSets to restrict query results to.SearchQueryCriteria.SortType getSortType()
SearchQueryCriteria.SortType.RELEVANCE
void setSortType(SearchQueryCriteria.SortType sortType)
SearchQueryCriteria.SortType.RELEVANCE. This method
will also set the sort type for each specific search query criteria.
If the sort type does not match a specific search query criteria, the default value for the specific
search query criteria will be used.
sortType - the SortType that will be used for sorting.MessageSearchQueryCriteria,
BlogPostSearchQueryCriteria,
DocumentSearchQueryCriteriaSearchQueryCriteria.SortOrder getSortOrder()
SearchQueryCriteria.SortOrder.ASCENDING for ascending sorting, or
SearchQueryCriteria.SortOrder.DESCENDING for descending sorting. Descending sorting is: 3, 2, 1, etc.
Ascending sorting is 1, 2, 3, etc.
void setSortOrder(SearchQueryCriteria.SortOrder sortOrder)
SearchQueryCriteria.SortOrder.ASCENDING for ascending sorting or
SearchQueryCriteria.SortOrder.DESCENDING for descending sorting. Descending sorting is: 3, 2, 1, etc.
Ascending sorting is 1, 2, 3, etc.
sortOrder - the order that results will be sorted in.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||