Builder

class Builder

A Builder for BlendedTermQuery.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

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

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.

Link copied to clipboard
Link copied to clipboard