public class MatchPhraseQuery extends Object implements Query
MatchQuery (MatchQuery 仅匹配某个词即可),但是 MatchPhraseQuery会匹配所有的短语。| Modifier and Type | Class and Description |
|---|---|
static class |
MatchPhraseQuery.Builder |
| Constructor and Description |
|---|
MatchPhraseQuery() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFieldName() |
QueryType |
getQueryType() |
String |
getText() |
float |
getWeight() |
protected static MatchPhraseQuery.Builder |
newBuilder() |
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 in interface Querypublic com.google.protobuf.ByteString serialize()
protected static MatchPhraseQuery.Builder newBuilder()
Copyright © 2024. All Rights Reserved.