public class MatchPhraseQuery extends Object implements Query
MatchQuery (MatchQuery only matches a single word), but MatchPhraseQuery matches the entire phrase.| 限定符和类型 | 类和说明 |
|---|---|
static class |
MatchPhraseQuery.Builder |
| 构造器和说明 |
|---|
MatchPhraseQuery() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getFieldName() |
QueryType |
getQueryType() |
String |
getText() |
float |
getWeight() |
protected static MatchPhraseQuery.Builder |
newBuilder() |
com.aliyun.ots.thirdparty.com.google.protobuf.ByteString |
serialize() |
void |
setFieldName(String fieldName) |
void |
setText(String text) |
void |
setWeight(float weight) |
public String getFieldName()
public void setFieldName(String fieldName)
public String getText()
public void setText(String text)
public float getWeight()
public void setWeight(float weight)
public QueryType getQueryType()
getQueryType 在接口中 Querypublic com.aliyun.ots.thirdparty.com.google.protobuf.ByteString serialize()
protected static MatchPhraseQuery.Builder newBuilder()
Copyright © 2025. All Rights Reserved.