public class CmsSearchResultList extends java.util.ArrayList<CmsSearchResult>
CmsSearchIndex
.构造器和说明 |
---|
CmsSearchResultList()
Creates a new result list with a default initial capacity of 100.
|
CmsSearchResultList(int initialCapacity)
Creates a new result list with the specified initial capacity.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,java.lang.Integer> |
getCategories()
Returns the (otional) categories found in the last the search, or
null
if the category list was not requested in the search. |
int |
getHitCount()
Returns the hit count of all results found in the last search.
|
void |
setCategories(java.util.Map<java.lang.String,java.lang.Integer> categories)
Sets the categories found in the last the search.
|
void |
setHitCount(int hitCount)
Sets the hit count of all results found in the last search.
|
public CmsSearchResultList()
public CmsSearchResultList(int initialCapacity)
initialCapacity
- the initial capacitypublic java.util.Map<java.lang.String,java.lang.Integer> getCategories()
null
if the category list was not requested in the search.CmsSearch.getCalculateCategories()
public int getHitCount()
Since this list will only contain the result objects for the current display page, the size of the list is usually much less then the hit count of all results found.
public void setCategories(java.util.Map<java.lang.String,java.lang.Integer> categories)
categories
- the categories to setCmsSearch.setCalculateCategories(boolean)
public void setHitCount(int hitCount)
Since this list will only contain the result objects for the current display page, the size of the list is usually much less then the hit count of all results found.
hitCount
- the hit count to set