Class SuggestionQuery
- java.lang.Object
-
- com.funnelback.plugin.search.model.SuggestionQuery
-
public class SuggestionQuery extends Object
To build the suggestion query which will query PADRE to a suggestion
-
-
Field Summary
Fields Modifier and Type Field Description private double
alpha
alpha valueprivate String
category
Category to scope suggestionsprivate Integer
count
How many suggestions to getprivate String
partialQuery
Initial query term for requesting suggestionprivate Sort
sort
Sort options for returned suggestions
-
Constructor Summary
Constructors Constructor Description SuggestionQuery(String partialQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAlpha()
alpha valueString
getCategory()
Category to scope suggestionsInteger
getCount()
How many suggestions to getString
getPartialQuery()
Initial query term for requesting suggestionSort
getSort()
Sort options for returned suggestionsvoid
setAlpha(double alpha)
alpha valuevoid
setCategory(String category)
Category to scope suggestionsvoid
setCount(Integer count)
How many suggestions to getvoid
setSort(Sort sort)
Sort options for returned suggestions
-
-
-
Field Detail
-
partialQuery
private final String partialQuery
Initial query term for requesting suggestion
-
count
private Integer count
How many suggestions to get
-
sort
private Sort sort
Sort options for returned suggestions
-
alpha
private double alpha
alpha value
-
category
private String category
Category to scope suggestions
-
-
Constructor Detail
-
SuggestionQuery
public SuggestionQuery(String partialQuery)
-
-
Method Detail
-
getPartialQuery
public String getPartialQuery()
Initial query term for requesting suggestion
-
setCount
public void setCount(Integer count)
How many suggestions to get
-
getCount
public Integer getCount()
How many suggestions to get
-
setSort
public void setSort(Sort sort)
Sort options for returned suggestions
-
getSort
public Sort getSort()
Sort options for returned suggestions
-
setAlpha
public void setAlpha(double alpha)
alpha value
-
getAlpha
public double getAlpha()
alpha value
-
setCategory
public void setCategory(String category)
Category to scope suggestions
-
getCategory
public String getCategory()
Category to scope suggestions
-
-