tot.search
类 SearchQueryNoSql

java.lang.Object
  继承者 tot.search.SearchQueryNoSql

public class SearchQueryNoSql
extends java.lang.Object


字段摘要
static int SEARCH_ANY_DATE
           
static int SEARCH_NEWER
           
static int SEARCH_OLDER
           
static int SEARCH_ONLY_BODY
           
static int SEARCH_ONLY_TITLE
           
static int SEARCH_SORT_DEFAULT
           
static int SEARCH_SORT_TIME_ASC
           
static int SEARCH_SORT_TIME_DESC
           
 
构造函数摘要
SearchQueryNoSql()
          Creates a new instance of ArticleSearchQuery
 
方法摘要
 java.util.Collection getArticleResult()
           
 int getHitCount()
           
protected  org.apache.lucene.search.IndexSearcher getSearcher(org.apache.lucene.store.Directory directory)
           
 int getSort()
           
 void searchDocuments(int offset, int rowsToReturn)
           
 void setArticleHitsLimit(int hitsNum)
           
 void setCatalogId(int catalogid)
          Id of forum where post belongs.
 void setFromDate(java.sql.Timestamp fromDate)
           
 void setScopeInArticle(int scopeInArticle)
           
 void setSearchString(java.lang.String searchString)
          Set string that should be searched for.
 void setSort(int sort)
           
 void setSortType(int stype)
           
 void setToDate(java.sql.Timestamp toDate)
           
 void setUserName(java.lang.String membername)
          Set name of the author that should be searched for
 
从类 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
另请参见:
常量字段值
构造函数详细信息

SearchQueryNoSql

public SearchQueryNoSql()
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()