Class SuggestionQuery


  • public class SuggestionQuery
    extends Object
    To build the suggestion query which will query PADRE to a suggestion
    • 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