Constructor DisjunctionMaxQuery
DisjunctionMaxQuery(Single)
Creates a new empty DisjunctionMaxQuery. Use add() to add the subqueries.
Declaration
public DisjunctionMaxQuery(float tieBreakerMultiplier)
Parameters
Type | Name | Description |
---|---|---|
System.Single | tieBreakerMultiplier | the score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score. If non-zero, the value should be small, on the order of 0.1, which says that 10 occurrences of word in a lower-scored field that is also in a higher scored field is just as good as a unique word in the lower scored field (i.e., one that is not in any higher scored field. |
DisjunctionMaxQuery(Collections.Generic.ICollection<Query>, Single)
Creates a new DisjunctionMaxQuery
Declaration
public DisjunctionMaxQuery(Collections.Generic.ICollection<Query> disjuncts, float tieBreakerMultiplier)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Query> | disjuncts | a Collection<Query> of all the disjuncts to add |
System.Single | tieBreakerMultiplier | the weight to give to each matching non-maximum disjunct |