add

Add a new Term to this builder, with a default boost of 1.

See also

.add


Add a Term with the provided boost. The higher the boost, the more this term will contribute to the overall score of the BlendedTermQuery.


fun add(term: Term, boost: Float, context: TermStates?): BlendedTermQuery.Builder

Expert: Add a Term with the provided boost and context. This method is useful if you already have a TermStates object constructed for the given term.