tot.search
类 SearchQuery
java.lang.Object
tot.search.SearchQuery
public class SearchQuery
- extends java.lang.Object
|
构造函数摘要 |
SearchQuery()
Creates a new instance of ArticleSearchQuery |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEARCH_ANY_DATE
public static final int SEARCH_ANY_DATE
- 另请参见:
- 常量字段值
SEARCH_NEWER
public static final int SEARCH_NEWER
- 另请参见:
- 常量字段值
SEARCH_OLDER
public static final int SEARCH_OLDER
- 另请参见:
- 常量字段值
SEARCH_ONLY_TITLE
public static final int SEARCH_ONLY_TITLE
- 另请参见:
- 常量字段值
SEARCH_ONLY_BODY
public static final int SEARCH_ONLY_BODY
- 另请参见:
- 常量字段值
SEARCH_SORT_DEFAULT
public static final int SEARCH_SORT_DEFAULT
- 另请参见:
- 常量字段值
SEARCH_SORT_TIME_DESC
public static final int SEARCH_SORT_TIME_DESC
- 另请参见:
- 常量字段值
SEARCH_SORT_TIME_ASC
public static final int SEARCH_SORT_TIME_ASC
- 另请参见:
- 常量字段值
SearchQuery
public SearchQuery()
- Creates a new instance of ArticleSearchQuery
setUserName
public void setUserName(java.lang.String membername)
- Set name of the author that should be searched for
- 参数:
membername -
setCatalogId
public void setCatalogId(int catalogid)
- Id of forum where post belongs. Set to -1 if all forums should be searched
- 参数:
catalogid -
setSearchString
public void setSearchString(java.lang.String searchString)
- Set string that should be searched for.
- 参数:
searchString -
setScopeInArticle
public void setScopeInArticle(int scopeInArticle)
setArticleHitsLimit
public void setArticleHitsLimit(int hitsNum)
setFromDate
public void setFromDate(java.sql.Timestamp fromDate)
setToDate
public void setToDate(java.sql.Timestamp toDate)
setSortType
public void setSortType(int stype)
getSearcher
protected org.apache.lucene.search.IndexSearcher getSearcher(org.apache.lucene.store.Directory directory)
throws java.io.IOException
- 抛出:
java.io.IOException
searchDocuments
public void searchDocuments(int offset,
int rowsToReturn)
throws java.io.IOException
- 抛出:
java.io.IOException
getHitCount
public int getHitCount()
getArticleResult
public java.util.Collection getArticleResult()
setSort
public void setSort(int sort)
getSort
public int getSort()