Class QueryRewrites

java.lang.Object
com.azure.search.documents.models.QueryRewrites

public class QueryRewrites extends Object
Configuration for how semantic search rewrites a query.
  • Constructor Details

  • Method Details

    • getRewritesType

      public QueryRewritesType getRewritesType()
      Gets the type of query rewrites to perform.
      Returns:
      The type of query rewrites to perform.
    • getCount

      public Integer getCount()
      Gets the number of rewrites to generate.

      The number of rewrites to return is optional and will default to 10.

      Returns:
      The number of rewrites to generate.
    • setCount

      public QueryRewrites setCount(Integer count)
      Sets the number of rewrites to generate.

      The number of rewrites to return is optional and will default to 10.

      Parameters:
      count - The number of rewrites to generate.
      Returns:
      The QueryRewrites object itself.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • fromString

      public static QueryRewrites fromString(String str)
      Parses a QueryRewrites from a string.
      Parameters:
      str - The string to parse.
      Returns:
      The parsed QueryRewrites.
      Throws:
      IllegalArgumentException - If the string is invalid.