public static class CombinedFieldQuery.Builder extends Object
CombinedFieldQuery
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CombinedFieldQuery.Builder |
addField(String field)
Adds a field to this builder.
|
CombinedFieldQuery.Builder |
addField(String field,
float weight)
Adds a field to this builder.
|
CombinedFieldQuery.Builder |
addTerm(BytesRef term)
Adds a term to this builder.
|
CombinedFieldQuery |
build()
Builds the
CombinedFieldQuery . |
public CombinedFieldQuery.Builder addField(String field)
field
- The field name.public CombinedFieldQuery.Builder addField(String field, float weight)
field
- The field name.weight
- The weight associated to this field.public CombinedFieldQuery.Builder addTerm(BytesRef term)
public CombinedFieldQuery build()
CombinedFieldQuery
.Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.