Interface DocumentRelevanceConfiguration.Builder

    • Method Detail

      • name

        DocumentRelevanceConfiguration.Builder name​(String name)

        The name of the index field.

        Parameters:
        name - The name of the index field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relevance

        DocumentRelevanceConfiguration.Builder relevance​(Relevance relevance)

        Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.

        Parameters:
        relevance - Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
        Returns:
        Returns a reference to this object so that method calls can be chained together.