public class SearchCriteria extends Object
Modifier and Type | Field and Description |
---|---|
protected Category |
category
The category that the user searched on
|
protected Map<String,String[]> |
filterCriteria |
protected Integer |
page |
static String |
PAGE_NUMBER |
static String |
PAGE_SIZE_STRING |
protected Integer |
pageSize |
protected String |
query
The query that the user actually typed into the search box, fully sanitized
|
static String |
QUERY_STRING |
static String |
REQUEST_HANDLER |
protected String |
requestHandler |
protected boolean |
searchExplicitCategory
Whether or not to do category filtering based on
SolrHelperService.getExplicitCategoryFieldName() or
SolrHelperService.getCategoryFieldName() |
static String |
SORT_STRING |
protected String |
sortQuery |
protected Integer |
startIndex |
Constructor and Description |
---|
SearchCriteria() |
Modifier and Type | Method and Description |
---|---|
Category |
getCategory() |
Map<String,String[]> |
getFilterCriteria() |
Integer |
getPage() |
Integer |
getPageSize() |
String |
getQuery() |
String |
getRequestHandler() |
boolean |
getSearchExplicitCategory() |
String |
getSortQuery() |
Integer |
getStartIndex() |
void |
setCategory(Category category) |
void |
setFilterCriteria(Map<String,String[]> filterCriteria) |
void |
setPage(Integer page) |
void |
setPageSize(Integer pageSize) |
void |
setQuery(String query) |
void |
setRequestHandler(String requestHandler) |
void |
setSearchExplicitCategory(boolean searchExplicitCategory) |
void |
setSortQuery(String sortQuery) |
void |
setStartIndex(Integer startIndex) |
public static String PAGE_SIZE_STRING
public static String PAGE_NUMBER
public static String SORT_STRING
public static String QUERY_STRING
public static String REQUEST_HANDLER
protected Integer page
protected Integer pageSize
protected Integer startIndex
protected String sortQuery
protected String requestHandler
protected Category category
protected String query
protected boolean searchExplicitCategory
SolrHelperService.getExplicitCategoryFieldName()
or
SolrHelperService.getCategoryFieldName()
public Integer getPage()
public void setPage(Integer page)
public Integer getPageSize()
public void setPageSize(Integer pageSize)
public Integer getStartIndex()
public void setStartIndex(Integer startIndex)
public String getSortQuery()
public void setSortQuery(String sortQuery)
public Category getCategory()
public void setCategory(Category category)
public String getQuery()
public void setQuery(String query)
public boolean getSearchExplicitCategory()
public void setSearchExplicitCategory(boolean searchExplicitCategory)
public String getRequestHandler()
public void setRequestHandler(String requestHandler)
Copyright © 2020. All rights reserved.