Class DefaultSearch

    • Method Detail

      • withSearchAfter

        public DefaultSearch withSearchAfter​(@NonNull List<String> searchAfter)
        Description copied from interface: ISearch
        This method is only relevant to OpenSearch. A class must implement this method. Otherwise, it will have no effect on the search results.
        Parameters:
        searchAfter - the searchAfter parameter
        Returns:
        a new ISearch containing the searchAfter parameter
        Since:
        8.7.0
      • withIndices

        public ISearch withIndices​(List<Index> indices)
        Description copied from interface: ISearch
        This method is only applicable for CustomSearch and DefaultSearch A class must implement this method. Otherwise, it will have no effect on the search results.
        Parameters:
        indices - the indices to search from
        Returns:
        a new ISearch containing the new indices
      • withQuery

        public ISearch withQuery​(SearchQuery query)
        Description copied from interface: ISearch
        A class must implement this method. Otherwise, UnsupportedOperationException will be thrown.
        Parameters:
        query - the query to be added to the search object
        Returns:
        a new ISearch containing the new query