Interface ResultData.Builder

  • Method Details

    • document

      ResultData.Builder document(Document document)

      The document.

      Parameters:
      document - The document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • document

      default ResultData.Builder document(Consumer<Document.Builder> document)

      The document.

      This is a convenience method that creates an instance of the Document.Builder avoiding the need to create one manually via Document.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to document(Document).

      Parameters:
      document - a consumer that will call methods on Document.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • relevanceScore

      ResultData.Builder relevanceScore(Double relevanceScore)

      The relevance score of the results.

      Parameters:
      relevanceScore - The relevance score of the results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultId

      ResultData.Builder resultId(String resultId)

      The identifier of the result data.

      Parameters:
      resultId - The identifier of the result data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.