SearchFilter Class
- java.
lang. Object - com.
azure. search. documents. SearchFilter
- com.
public final class SearchFilter
This class is used to help construct valid OData filter expressions by automatically replacing, quoting, and escaping string parameters.
The constructed OData filter expression is used by setFilter(String filter), setFilter(String filter), and setFilter(String filter).
For more information, see Filters in Azure Cognitive Search.
Method Summary
Modifier and Type | Method and Description |
---|---|
static String |
create(String formattableString, Object[] args)
Create an OData filter expression from a formattable string. |
Methods inherited from java.lang.Object
Method Details
create
public static String create(String formattableString, Object[] args)
Create an OData filter expression from a formattable string.
The format argument values will be quoted and escaped as necessary.
Parameters:
formattableString
- The formattable string.
args
- The arguments for the formattable string.
Returns:
A valid OData filter expression.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java