Class QueryAnswerType

java.lang.Object
com.azure.core.util.ExpandableStringEnum<QueryAnswerType>
com.azure.search.documents.models.QueryAnswerType

public final class QueryAnswerType extends com.azure.core.util.ExpandableStringEnum<QueryAnswerType>
This parameter is only valid if the query type is 'semantic'. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character '|' followed by the 'count-<number of answers>' option after the answers parameter value, such as 'extractive|count-3'. Default count is 1.
  • Field Details

    • NONE

      public static final QueryAnswerType NONE
      Static value none for QueryAnswerType.
    • EXTRACTIVE

      public static final QueryAnswerType EXTRACTIVE
      Static value extractive for QueryAnswerType.
  • Constructor Details

    • QueryAnswerType

      public QueryAnswerType()
  • Method Details

    • fromString

      public static QueryAnswerType fromString(String name)
      Creates or finds a QueryAnswerType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding QueryAnswerType.
    • values

      public static Collection<QueryAnswerType> values()
      Gets known QueryAnswerType values.
      Returns:
      known QueryAnswerType values.