Package org.apache.lucene.search
Class XCombinedFieldQuery.Builder
java.lang.Object
org.apache.lucene.search.XCombinedFieldQuery.Builder
- Enclosing class:
- XCombinedFieldQuery
public static class XCombinedFieldQuery.Builder
extends java.lang.Object
A builder for
XCombinedFieldQuery
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description XCombinedFieldQuery.Builder
addField(java.lang.String field)
Adds a field to this builder.XCombinedFieldQuery.Builder
addField(java.lang.String field, float weight)
Adds a field to this builder.XCombinedFieldQuery.Builder
addTerm(org.apache.lucene.util.BytesRef term)
Adds a term to this builder.XCombinedFieldQuery
build()
Builds theXCombinedFieldQuery
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addField
Adds a field to this builder.- Parameters:
field
- The field name.
-
addField
Adds a field to this builder.- Parameters:
field
- The field name.weight
- The weight associated to this field.
-
addTerm
Adds a term to this builder. -
build
Builds theXCombinedFieldQuery
.
-