Class SearchResult
- java.lang.Object
-
- org.craftercms.studio.model.search.SearchResult
-
public class SearchResult extends Object
Holds all the data for a search operation- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SearchFacet>facetsThe facets of the matched filesprotected List<SearchResultItem>itemsThe list of filesprotected longtotalThe total files that matched the search
-
Constructor Summary
Constructors Constructor Description SearchResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SearchFacet>getFacets()List<SearchResultItem>getItems()longgetTotal()voidsetFacets(List<SearchFacet> facets)voidsetItems(List<SearchResultItem> items)voidsetTotal(long total)
-
-
-
Field Detail
-
total
protected long total
The total files that matched the search
-
items
protected List<SearchResultItem> items
The list of files
-
facets
protected List<SearchFacet> facets
The facets of the matched files
-
-
Method Detail
-
getTotal
public long getTotal()
-
setTotal
public void setTotal(long total)
-
getItems
public List<SearchResultItem> getItems()
-
setItems
public void setItems(List<SearchResultItem> items)
-
getFacets
public List<SearchFacet> getFacets()
-
setFacets
public void setFacets(List<SearchFacet> facets)
-
-