QueryRewrites Class

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

public class QueryRewrites

Configuration for how semantic search rewrites a query.

Constructor Summary

Constructor Description
QueryRewrites(QueryRewritesType rewritesType)

Creates a new instance of QueryRewrites.

Method Summary

Modifier and Type Method and Description
boolean equals(Object obj)
static QueryRewrites fromString(String str)

Parses a QueryRewrites from a string.

Integer getCount()

Gets the number of rewrites to generate.

QueryRewritesType getRewritesType()

Gets the type of query rewrites to perform.

int hashCode()
QueryRewrites setCount(Integer count)

Sets the number of rewrites to generate.

String toString()

Methods inherited from java.lang.Object

Constructor Details

QueryRewrites

public QueryRewrites(QueryRewritesType rewritesType)

Creates a new instance of QueryRewrites.

Parameters:

rewritesType - The type of query rewrites to perform.

Method Details

equals

public boolean equals(Object obj)

Overrides:

QueryRewrites.equals(Object obj)

Parameters:

obj

fromString

public static QueryRewrites fromString(String str)

Parses a QueryRewrites from a string.

Parameters:

str - The string to parse.

Returns:

The parsed QueryRewrites.

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.

getRewritesType

public QueryRewritesType getRewritesType()

Gets the type of query rewrites to perform.

Returns:

The type of query rewrites to perform.

hashCode

public int hashCode()

Overrides:

QueryRewrites.hashCode()

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:

QueryRewrites.toString()

Applies to