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>
facets
The facets of the matched filesprotected List<SearchResultItem>
items
The list of filesprotected long
total
The 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()
long
getTotal()
void
setFacets(List<SearchFacet> facets)
void
setItems(List<SearchResultItem> items)
void
setTotal(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)
-
-