你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

QueryType Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.search.documents.models.QueryType

public enum QueryType
extends Enum<QueryType>

Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax.

Fields

FULL

Uses the full Lucene query syntax for searches.

SEMANTIC

Best suited for queries expressed in natural language as opposed to keywords.

SIMPLE

Uses the simple query syntax for searches.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

fromString(String value)

public static QueryType fromString(String value)

Parses a serialized value to a QueryType instance.

Parameters

value
String
the serialized value to parse.

Returns

the parsed QueryType object, or null if unable to parse.

toString()

public String toString()

Returns

Overrides
java.lang.Enum.toString()

valueOf(String name)

public static QueryType valueOf(String name)

Parameters

name
String

Returns

values()

public static QueryType[] values()

Returns

Applies to