FieldWithBoost adds a field to run the query string against with a specific boost.
(field string, boost float64)
| 75 | |
| 76 | // FieldWithBoost adds a field to run the query string against with a specific boost. |
| 77 | func (q *QueryStringQuery) FieldWithBoost(field string, boost float64) *QueryStringQuery { |
| 78 | q.fields = append(q.fields, field) |
| 79 | q.fieldBoosts[field] = &boost |
| 80 | return q |
| 81 | } |
| 82 | |
| 83 | // TieBreaker is used when more than one field is used with the query string, |
| 84 | // and combined queries are using dismax. |
nothing calls this directly
no outgoing calls
no test coverage detected