Class DefaultSearchWithToken

    • Constructor Detail

      • DefaultSearchWithToken

        public DefaultSearchWithToken​(ISearch delegate,
                                      long searchToken)
    • Method Detail

      • getSearchToken

        public long getSearchToken()
        Specified by:
        getSearchToken in interface SearchWithToken
        Returns:
        a search token that allows additional searching to be performed against a specific version of the index (perhaps older version).
      • getQuery

        public @NonNull SearchQuery getQuery()
        Specified by:
        getQuery in interface ISearch
        Returns:
        the non-null query component of the search
      • getSort

        public SearchSort getSort()
        Specified by:
        getSort in interface ISearch
        Returns:
        the sort component of the search
      • getStartOffset

        public int getStartOffset()
        Specified by:
        getStartOffset in interface ISearch
        Returns:
        the start offset (0 based).
      • getLimit

        public int getLimit()
        Specified by:
        getLimit in interface ISearch
        Returns:
        the maximum page size (positive).
      • getSearchType

        public String getSearchType()
        Description copied from interface: ISearch
        Returns type of search e.g. SiteSearch, RecentUpdate, NetworkFeed, BlogUpdate, which can be used by search manager to switch between different implementations to support incremental roll out.
        Specified by:
        getSearchType in interface ISearch
        Returns:
        type of search
      • isExplain

        public boolean isExplain()
        Specified by:
        isExplain in interface ISearch