C# (CSharp) Rubber.DSL.Query Namespace

Classes

Name Description
BoolQueryBuilder A Query that matches documents matching boolean combinations of other queries.
BoostingQueryBuilder The BoostingQuery class can be used to effectively demote results that match a given query. Unlike the "NOT" clause, this still selects documents that contain undesirable terms, but reduces their overall score: Query balancedQuery = new BoostingQuery(positiveQuery, negativeQuery, 0.01f); In this scenario the positiveQuery contains the mandatory, desirable criteria which is used to select all matching documents, and the negativeQuery contains the undesirable elements which are simply used to lessen the scores. Documents that match the negativeQuery have their score multiplied by the supplied "boost" parameter, so this should be less than 1 to achieve a demoting effect
ConstantScoreQueryBuilder A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.
CustomBoostFactorQueryBuilder A query that simply applies the boost factor to another query (multiply it).
CustomFiltersScoreQueryBuilder A query that uses a filters with a script associated with them to compute the score.
CustomScoreQueryBuilder A query that uses a script to compute the score.
DisMaxQueryBuilder A query that generates the union of documents produced by its sub-queries, and that scores each document with the maximum score for that document as produced by any sub-query, plus a tie breaking increment for any additional matching sub-queries.
FieldMaskingSpanQueryBuilder
FieldQueryBuilder A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.
FilteredQueryBuilder
FuzzyLikeThisFieldQueryBuilder
FuzzyLikeThisQueryBuilder
FuzzyQueryBuilder A Query that does fuzzy matching for a specific value.
HasChildQueryBuilder
IdsQueryBuilder A query that will return only documents matching specific ids (and a type).
IndicesQueryBuilder A query that will execute the wrapped query only for the specified indices, and "match_all" when it does not match those indices (by default).
MatchAllQueryBuilder
MoreLikeThisFieldQueryBuilder A more like this query that runs against a specific field.
MoreLikeThisQueryBuilder A more like this query that finds documents that are "like" the provided {@link #likeText(String)} which is checked against the fields the query is constructed with.
NestedQueryBuilder
PrefixQueryBuilder A Query that matches documents containing terms with a specified prefix.
QueryStringQueryBuilder A query that parses a query string and runs it. There are two modes that this operates. The first, when no field is added (using {@link #field(string)}, will run the query once and non prefixed fields will use the {@link #defaultField(string)} set. The second, when one or more fields are added (using {@link #field(string)}), will run the parsed query against the provided fields, and combine them either using DisMax or a plain boolean query (see {@link #useDisMax(boolean)}).
RangeQueryBuilder A Query that matches documents within an range of terms.
SpanFirstQueryBuilder
SpanNearQueryBuilder
SpanNotQueryBuilder
SpanOrQueryBuilder
SpanTermQueryBuilder
TermQueryBuilder
TermsQueryBuilder
TextQueryBuilder
TopChildrenQueryBuilder
WildcardQueryBuilder Implements the wildcard search query. Supported wildcards are *, which matches any character sequence (including the empty one), and ?, which matches any single character. Note this query can be slow, as it needs to iterate over many terms. In order to prevent extremely slow WildcardQueries, a Wildcard term should not start with one of the wildcards * or ?.
WrapperQueryBuilder A Query builder which allows building a query thanks to a JSON string or binary data. This is useful when you want to use the Java Builder API but still have JSON query strings at hand that you want to combine with other query builders. Example usage in a boolean query :
 {@code BoolQueryBuilder bool = new BoolQueryBuilder(); bool.must(new WrapperQueryBuilder("{\"term\": {\"field\":\"value\"}}"); bool.must(new TermQueryBuilder("field2","value2"); }