public class SearchRequestParams extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
dir |
protected Boolean |
facet
To disable facets
|
protected String[] |
facets
The facets to be included by the search
Initialised with the default facets to use
|
protected String |
fl |
protected Integer |
flimit |
protected Integer |
foffset
The offset of facets to return.
|
protected String |
formattedQuery |
protected String |
fprefix
The prefix to limit facet values
|
protected String[] |
fq |
protected String |
fsort
The sort order in which to return the facets.
|
protected Integer |
pageSize |
protected String |
q |
protected String |
qc
The query context to be used for the search.
|
protected Long |
qId
Only used to store the formattedQuery to be passed around in biocache-service
|
protected String |
sort |
protected Integer |
start |
| Constructor and Description |
|---|
SearchRequestParams() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
conditionalEncode(String input,
Boolean isEncoded)
URI encode the param value if isEncoded is true
|
String |
getDir()
Get the value of dir
|
String |
getDisplayString() |
String |
getEncodedParams()
Produce a URI encoded query string for use in java.util.URI, etc
|
Boolean |
getFacet() |
String[] |
getFacets() |
String |
getFl() |
Integer |
getFlimit() |
Integer |
getFoffset() |
String |
getFormattedQuery() |
String |
getFprefix() |
String[] |
getFq()
Get the value of fq
|
String |
getFsort() |
Integer |
getPageSize()
Get the value of pageSize
|
String |
getQ()
Get the value of q
|
String |
getQc() |
Long |
getQId() |
String |
getSort()
Get the value of sort
|
Integer |
getStart()
Get the value of start
|
Integer |
getStartIndex()
Set the value of start
|
String |
getUrlParams()
Constructs the params to be returned in the result
|
int |
hashCode() |
void |
setDir(String sortDirection)
Set the value of dir
|
void |
setDisplayString(String displayString) |
void |
setFacet(Boolean facet) |
void |
setFacets(String[] facets) |
void |
setFl(String fl) |
void |
setFlimit(Integer flimit) |
void |
setFoffset(Integer foffset) |
void |
setFormattedQuery(String formattedQuery) |
void |
setFprefix(String fprefix) |
void |
setFq(String[] filterQuery)
Set the value of fq
|
void |
setFsort(String fsort) |
void |
setPageSize(Integer pageSize)
Set the value of pageSize
|
void |
setQ(String query)
Set the value of q
|
void |
setQc(String qc) |
void |
setQId(Long qId) |
void |
setSort(String sort)
Set the value of sort
|
void |
setStart(Integer start)
Set the value of start
|
void |
setStartIndex(Integer startIndex)
Set the value of start
|
String |
toString()
Custom toString method to produce a String to be used as the request parameters
for the Biocache Service webservices
|
protected String |
toString(Boolean encodeParams)
Common code to output a param string with conditional encoding of values
|
protected Long qId
protected String formattedQuery
protected String q
protected String[] fq
protected String fl
protected String[] facets
protected Integer start
protected Integer flimit
protected String fsort
protected Integer foffset
protected String fprefix
protected Integer pageSize
protected String sort
protected String dir
protected String qc
protected Boolean facet
public String toString()
public String getEncodedParams()
protected String toString(Boolean encodeParams)
encodeParams - protected String conditionalEncode(String input, Boolean isEncoded)
input - isEncoded - public String getUrlParams()
public String getQ()
public void setQ(String query)
query - new value of qpublic Long getQId()
public void setQId(Long qId)
public String[] getFq()
public void setFq(String[] filterQuery)
filterQuery - new value of fqpublic Integer getStart()
public void setStart(Integer start)
start - new value of startpublic void setStartIndex(Integer startIndex)
startIndex - new value of startpublic Integer getStartIndex()
public Integer getPageSize()
public void setPageSize(Integer pageSize)
pageSize - new value of pageSizepublic String getSort()
public void setSort(String sort)
sort - new value of sortpublic String getDir()
public void setDir(String sortDirection)
sortDirection - new value of dirpublic String getDisplayString()
public void setDisplayString(String displayString)
public String[] getFacets()
public void setFacets(String[] facets)
public Integer getFlimit()
public void setFlimit(Integer flimit)
public String getQc()
public void setQc(String qc)
public String getFl()
public void setFl(String fl)
public String getFormattedQuery()
public void setFormattedQuery(String formattedQuery)
formattedQuery - the formattedQuery to setpublic Boolean getFacet()
public void setFacet(Boolean facet)
public String getFsort()
public void setFsort(String fsort)
fsort - the fsort to setpublic Integer getFoffset()
public void setFoffset(Integer foffset)
foffset - the foffset to setpublic String getFprefix()
public void setFprefix(String fprefix)
fprefix - the fprefix to setCopyright © 2014. All rights reserved.