Class BaseSearchQuery

  • All Implemented Interfaces:
    SearchQuery

    public class BaseSearchQuery
    extends Object
    implements SearchQuery
    A foundation class for implementing SearchQuery.
    • Constructor Detail

      • BaseSearchQuery

        public BaseSearchQuery()
    • Method Detail

      • setQuery

        public SearchQuery setQuery​(String query)
        Description copied from interface: SearchQuery
        Set the text of the query. This will be parsed using Lucene query syntax.
        Specified by:
        setQuery in interface SearchQuery
        Returns:
        this query
      • setStart

        public SearchQuery setStart​(int start)
        Description copied from interface: SearchQuery
        Where in the ordered list of result documents should the response begin? That is, how many of the results should be skipped? (allows paging of results). The default is 0.
        Specified by:
        setStart in interface SearchQuery
        Returns:
        this query
      • setRows

        public SearchQuery setRows​(int rows)
        Description copied from interface: SearchQuery
        What is the maximum number of documents that will be returned from the query? A negative value means no limit. The default is -1.
        Specified by:
        setRows in interface SearchQuery
        Returns:
        this query
      • setFacetLimit

        public SearchQuery setFacetLimit​(int cnt)
        Description copied from interface: SearchQuery
        The maximum number of facet counts that will be returned from the query. The default is 100. A negative value means no limit.
        Specified by:
        setFacetLimit in interface SearchQuery
        Returns:
        this query
      • setFacetMinCount

        public SearchQuery setFacetMinCount​(int cnt)
        Description copied from interface: SearchQuery
        Facet having fewer hits will be excluded from the list. The default is 0.
        Specified by:
        setFacetMinCount in interface SearchQuery
        Returns:
        this query
      • getQuery

        public String getQuery()
        Specified by:
        getQuery in interface SearchQuery
        Returns:
        The text of the query. May be empty, but never null.
      • getRows

        public int getRows()
        Specified by:
        getRows in interface SearchQuery
        Returns:
        A negative value means that no limit has been specified.
      • getFacetLimit

        public int getFacetLimit()
        Specified by:
        getFacetLimit in interface SearchQuery
        Returns:
        A negative value means that no limit has been specified.
      • getFacetMinCount

        public int getFacetMinCount()
        Specified by:
        getFacetMinCount in interface SearchQuery
        Returns:
        A negative value means that no limit has been specified.