Class: Queries::QueryBuilder
- Inherits:
-
Object
- Object
- Queries::QueryBuilder
- Includes:
- AttributesReader, AbstractQueryBuilder
- Defined in:
- lib/queries/query_builder.rb
Overview
Base Class for all query classes
QueryComponents
boost: documents matching the query are boosted by
the value
Direct Known Subclasses
BaseQueryBuilder, BoolQueryBuilder, ConstantScoreQueryBuilder, DisMaxQueryBuilder, ExistsQueryBuilder, FunctionScoreQueryBuilder, GeoBoundingBoxQueryBuilder, GeoDistanceQueryBuilder, MatchAllQueryBuilder, MatchQueryBuilder, NestedQueryBuilder, NestedSortQueryBuilder, RangeQueryBuilder, TermQueryBuilder, TermsQueryBuilder
Constant Summary collapse
- NAME =
'base'
Instance Method Summary collapse
-
#boost(value) ⇒ QueryBuilder
sets the boost value for this query.
Methods included from AttributesReader
Methods included from AbstractQueryBuilder
Instance Method Details
#boost(value) ⇒ QueryBuilder
sets the boost value for this query
26 27 28 29 30 31 |
# File 'lib/queries/query_builder.rb', line 26 def boost(value) raise 'boost value is nil' if value.nil? @boost = value self end |