|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.senseidb.search.req.SenseiRequest
public class SenseiRequest
Field Summary | |
---|---|
static org.apache.lucene.search.SortField |
FIELD_DOC
Represents sorting by document number (index order). |
static org.apache.lucene.search.SortField |
FIELD_DOC_REVERSE
|
static org.apache.lucene.search.SortField |
FIELD_SCORE
Represents sorting by document score (relevancy). |
static org.apache.lucene.search.SortField |
FIELD_SCORE_REVERSE
|
Constructor Summary | |
---|---|
SenseiRequest()
|
Method Summary | |
---|---|
void |
addSelection(com.browseengine.bobo.api.BrowseSelection sel)
Adds a browse selection |
void |
addSelections(com.browseengine.bobo.api.BrowseSelection[] selections)
Adds a browse selection array |
void |
addSortField(org.apache.lucene.search.SortField sortSpec)
Add a sort spec |
void |
addSortFields(org.apache.lucene.search.SortField[] sortSpecs)
Add a sort spec |
void |
clearSelections()
|
void |
clearSort()
|
Object |
clone()
|
boolean |
equals(Object o)
|
static SenseiRequest |
fromJSON(org.json.JSONObject json)
|
int |
getCount()
Gets the number of hits to return. |
com.browseengine.bobo.facets.FacetHandlerInitializerParam |
getFacetHandlerInitializerParam(String name)
|
Map<String,com.browseengine.bobo.facets.FacetHandlerInitializerParam> |
getFacetHandlerInitParamMap()
|
com.browseengine.bobo.api.FacetSpec |
getFacetSpec(String name)
Gets a facet spec |
int |
getFacetSpecCount()
Gets the number of facet specs |
Map<String,com.browseengine.bobo.api.FacetSpec> |
getFacetSpecs()
|
String |
getGroupBy()
|
int |
getMaxPerGroup()
|
int |
getOffset()
Gets the offset. |
Set<Integer> |
getPartitions()
|
SenseiQuery |
getQuery()
Gets the search query |
String |
getRouteParam()
|
com.browseengine.bobo.api.BrowseSelection |
getSelection(String fieldname)
Gets selection by field name |
int |
getSelectionCount()
|
Set<String> |
getSelectionNames()
|
com.browseengine.bobo.api.BrowseSelection[] |
getSelections()
Gets all added browse selections |
List<String> |
getSelectList()
Gets the select list. |
org.apache.lucene.search.SortField[] |
getSort()
Gets the sort criteria |
Set<String> |
getTermVectorsToFetch()
|
long |
getTid()
Get the transaction ID. |
boolean |
isFetchStoredFields()
|
boolean |
isFetchStoredValue()
|
boolean |
isShowExplanation()
|
void |
putAllFacetHandlerInitializerParams(Map<String,com.browseengine.bobo.facets.FacetHandlerInitializerParam> params)
|
void |
removeSelection(String name)
|
void |
restoreState()
|
void |
saveState()
|
void |
setCount(int count)
Sets the number of hits to return. |
void |
setFacetHandlerInitializerParam(String name,
com.browseengine.bobo.facets.FacetHandlerInitializerParam param)
|
void |
setFacetHandlerInitParamMap(Map<String,com.browseengine.bobo.facets.FacetHandlerInitializerParam> paramMap)
|
void |
setFacetSpec(String name,
com.browseengine.bobo.api.FacetSpec facetSpec)
Sets a facet spec |
void |
setFacetSpecs(Map<String,com.browseengine.bobo.api.FacetSpec> facetSpecMap)
|
void |
setFetchStoredFields(boolean fetchStoredFields)
|
void |
setFetchStoredValue(boolean fetchStoredValue)
|
void |
setGroupBy(String groupBy)
|
void |
setMaxPerGroup(int maxPerGroup)
|
void |
setOffset(int offset)
Sets of the offset. |
void |
setPartitions(Set<Integer> partitions)
|
void |
setQuery(SenseiQuery query)
Set the search query |
void |
setRouteParam(String routeParam)
|
void |
setSelectList(List<String> selectList)
Sets the select list. |
void |
setShowExplanation(boolean showExplanation)
|
void |
setSort(org.apache.lucene.search.SortField[] sorts)
Sets the sort criteria |
void |
setTermVectorsToFetch(Set<String> termVectorsToFetch)
|
void |
setTid(long tid)
Set the transaction ID; |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.lucene.search.SortField FIELD_SCORE
public static final org.apache.lucene.search.SortField FIELD_SCORE_REVERSE
public static final org.apache.lucene.search.SortField FIELD_DOC
public static final org.apache.lucene.search.SortField FIELD_DOC_REVERSE
Constructor Detail |
---|
public SenseiRequest()
Method Detail |
---|
public Set<String> getTermVectorsToFetch()
public void setTermVectorsToFetch(Set<String> termVectorsToFetch)
public final long getTid()
public final void setTid(long tid)
tid
- public boolean isShowExplanation()
public void setShowExplanation(boolean showExplanation)
public void setPartitions(Set<Integer> partitions)
setPartitions
in interface AbstractSenseiRequest
public Set<Integer> getPartitions()
getPartitions
in interface AbstractSenseiRequest
public void setRouteParam(String routeParam)
public String getRouteParam()
getRouteParam
in interface AbstractSenseiRequest
public void setGroupBy(String groupBy)
public String getGroupBy()
public void setMaxPerGroup(int maxPerGroup)
public int getMaxPerGroup()
public Map<String,com.browseengine.bobo.facets.FacetHandlerInitializerParam> getFacetHandlerInitParamMap()
public void setFacetHandlerInitParamMap(Map<String,com.browseengine.bobo.facets.FacetHandlerInitializerParam> paramMap)
public void putAllFacetHandlerInitializerParams(Map<String,com.browseengine.bobo.facets.FacetHandlerInitializerParam> params)
public void setFacetHandlerInitializerParam(String name, com.browseengine.bobo.facets.FacetHandlerInitializerParam param)
public com.browseengine.bobo.facets.FacetHandlerInitializerParam getFacetHandlerInitializerParam(String name)
public Set<String> getSelectionNames()
public void removeSelection(String name)
public void setFacetSpecs(Map<String,com.browseengine.bobo.api.FacetSpec> facetSpecMap)
public Map<String,com.browseengine.bobo.api.FacetSpec> getFacetSpecs()
public void saveState()
saveState
in interface AbstractSenseiRequest
public void restoreState()
restoreState
in interface AbstractSenseiRequest
public int getSelectionCount()
public void clearSelections()
public int getFacetSpecCount()
setFacetSpec(String, FacetSpec)
,
getFacetSpec(String)
public void clearSort()
public boolean isFetchStoredFields()
public void setFetchStoredFields(boolean fetchStoredFields)
public boolean isFetchStoredValue()
public void setFetchStoredValue(boolean fetchStoredValue)
public void setFacetSpec(String name, com.browseengine.bobo.api.FacetSpec facetSpec)
name
- field namefacetSpec
- Facet specgetFacetSpec(String)
public com.browseengine.bobo.api.FacetSpec getFacetSpec(String name)
name
- field name
setFacetSpec(String, FacetSpec)
public int getCount()
setCount(int)
public void setCount(int count)
count
- number of hits to return.getCount()
public int getOffset()
setOffset(int)
public void setOffset(int offset)
offset
- offsetgetOffset()
public void setQuery(SenseiQuery query)
query
- query objectgetQuery()
public SenseiQuery getQuery()
setQuery(SenseiQuery)
public void addSelections(com.browseengine.bobo.api.BrowseSelection[] selections)
selections
- selections to addaddSelection(BrowseSelection)
,
getSelections()
public void addSelection(com.browseengine.bobo.api.BrowseSelection sel)
sel
- selectiongetSelections()
public com.browseengine.bobo.api.BrowseSelection[] getSelections()
addSelection(BrowseSelection)
public com.browseengine.bobo.api.BrowseSelection getSelection(String fieldname)
fieldname
-
public void addSortField(org.apache.lucene.search.SortField sortSpec)
sortSpec
- sort specgetSort()
,
setSort(SortField[])
public void addSortFields(org.apache.lucene.search.SortField[] sortSpecs)
sortSpecs
- sort specgetSort()
,
setSort(SortField[])
public org.apache.lucene.search.SortField[] getSort()
setSort(SortField[])
,
addSortField(SortField)
public void setSort(org.apache.lucene.search.SortField[] sorts)
sorts
- sort criteriaaddSortField(SortField)
,
getSort()
public void setSelectList(List<String> selectList)
selectList
- select listpublic List<String> getSelectList()
public String toString()
toString
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean equals(Object o)
equals
in class Object
public static SenseiRequest fromJSON(org.json.JSONObject json) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |