|
2 | 2 | using System.Collections.Generic;
|
3 | 3 | namespace Nest
|
4 | 4 | {
|
5 |
| - interface IQueryDescriptor<T> |
6 |
| - where T : class |
7 |
| - { |
8 |
| - BaseQuery Bool(Action<BoolQueryDescriptor<T>> booleanQuery); |
9 |
| - BaseQuery Boosting(Action<BoostingQueryDescriptor<T>> boostingQuery); |
10 |
| - BaseQuery ConstantScore(Action<ConstantScoreQueryDescriptor<T>> selector); |
11 |
| - BaseQuery CustomBoostFactor(Action<CustomBoostFactorQueryDescriptor<T>> selector); |
12 |
| - BaseQuery CustomScore(Action<CustomScoreQueryDescriptor<T>> customScoreQuery); |
13 |
| - BaseQuery Dismax(Action<DismaxQueryDescriptor<T>> selector); |
14 |
| - BaseQuery Filtered(Action<FilteredQueryDescriptor<T>> selector); |
15 |
| - BaseQuery Fuzzy(Action<FuzzyQueryDescriptor<T>> selector); |
16 |
| - BaseQuery FuzzyDate(Action<FuzzyDateQueryDescriptor<T>> selector); |
17 |
| - BaseQuery FuzzyLikeThis(Action<FuzzyLikeThisDescriptor<T>> selector); |
18 |
| - BaseQuery FuzzyNumeric(Action<FuzzyNumericQueryDescriptor<T>> selector); |
19 |
| - BaseQuery HasChild<K>(Action<HasChildQueryDescriptor<K>> selector) where K : class; |
20 |
| - BaseQuery Ids(IEnumerable<string> types, IEnumerable<string> values); |
21 |
| - BaseQuery Ids(IEnumerable<string> values); |
22 |
| - BaseQuery Ids(string type, IEnumerable<string> values); |
23 |
| - BaseQuery Indices(Action<IndicesQueryDescriptor<T>> selector); |
24 |
| - BaseQuery MatchAll(double? Boost = null, string NormField = null); |
25 |
| - BaseQuery MoreLikeThis(Action<MoreLikeThisQueryDescriptor<T>> selector); |
26 |
| - BaseQuery Nested(Action<NestedQueryDescriptor<T>> selector); |
27 |
| - BaseQuery Prefix(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
28 |
| - BaseQuery Prefix(string field, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
29 |
| - BaseQuery QueryString(Action<QueryStringDescriptor<T>> selector); |
30 |
| - BaseQuery Range(Action<RangeQueryDescriptor<T>> selector); |
31 |
| - BaseQuery SpanFirst(Action<SpanFirstQueryDescriptor<T>> selector); |
32 |
| - BaseQuery SpanNear(Action<SpanNearQueryDescriptor<T>> selector); |
33 |
| - BaseQuery SpanNot(Action<SpanNotQueryDescriptor<T>> selector); |
34 |
| - BaseQuery SpanOr(Action<SpanOrQueryDescriptor<T>> selector); |
35 |
| - BaseQuery SpanTerm(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null); |
36 |
| - BaseQuery SpanTerm(string field, string value, double? Boost = null); |
37 |
| - BaseQuery Term(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null); |
38 |
| - BaseQuery Term(string field, string value, double? Boost = null); |
39 |
| - BaseQuery Terms(System.Linq.Expressions.Expression<Func<T, object>> objectPath, params string[] terms); |
40 |
| - BaseQuery Terms(string field, params string[] terms); |
41 |
| - BaseQuery TermsDescriptor(Action<TermsQueryDescriptor<T>> selector); |
42 |
| - BaseQuery Text(Action<TextQueryDescriptor<T>> selector); |
43 |
| - BaseQuery TextPhrase(Action<TextPhraseQueryDescriptor<T>> selector); |
44 |
| - BaseQuery TextPhrasePrefix(Action<TextPhrasePrefixQueryDescriptor<T>> selector); |
45 |
| - BaseQuery Match(Action<MatchQueryDescriptor<T>> selector); |
46 |
| - BaseQuery MatchPhrase(Action<MatchPhraseQueryDescriptor<T>> selector); |
47 |
| - BaseQuery MatchPhrasePrefix(Action<MatchPhrasePrefixQueryDescriptor<T>> selector); |
48 |
| - BaseQuery TopChildren<K>(Action<TopChildrenQueryDescriptor<K>> selector) where K : class; |
49 |
| - BaseQuery Wildcard(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
50 |
| - BaseQuery Wildcard(string field, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
51 |
| - } |
| 5 | + interface IQueryDescriptor<T> |
| 6 | + where T : class |
| 7 | + { |
| 8 | + BaseQuery Bool(Action<BoolQueryDescriptor<T>> booleanQuery); |
| 9 | + BaseQuery Boosting(Action<BoostingQueryDescriptor<T>> boostingQuery); |
| 10 | + BaseQuery ConstantScore(Action<ConstantScoreQueryDescriptor<T>> selector); |
| 11 | + BaseQuery CustomBoostFactor(Action<CustomBoostFactorQueryDescriptor<T>> selector); |
| 12 | + BaseQuery CustomScore(Action<CustomScoreQueryDescriptor<T>> customScoreQuery); |
| 13 | + BaseQuery Dismax(Action<DismaxQueryDescriptor<T>> selector); |
| 14 | + BaseQuery Filtered(Action<FilteredQueryDescriptor<T>> selector); |
| 15 | + BaseQuery Fuzzy(Action<FuzzyQueryDescriptor<T>> selector); |
| 16 | + BaseQuery FuzzyDate(Action<FuzzyDateQueryDescriptor<T>> selector); |
| 17 | + BaseQuery FuzzyLikeThis(Action<FuzzyLikeThisDescriptor<T>> selector); |
| 18 | + BaseQuery FuzzyNumeric(Action<FuzzyNumericQueryDescriptor<T>> selector); |
| 19 | + BaseQuery HasChild<K>(Action<HasChildQueryDescriptor<K>> selector) where K : class; |
| 20 | + BaseQuery Ids(IEnumerable<string> types, IEnumerable<string> values); |
| 21 | + BaseQuery Ids(IEnumerable<string> values); |
| 22 | + BaseQuery Ids(string type, IEnumerable<string> values); |
| 23 | + BaseQuery Indices(Action<IndicesQueryDescriptor<T>> selector); |
| 24 | + BaseQuery MatchAll(double? Boost = null, string NormField = null); |
| 25 | + BaseQuery MoreLikeThis(Action<MoreLikeThisQueryDescriptor<T>> selector); |
| 26 | + BaseQuery Nested(Action<NestedQueryDescriptor<T>> selector); |
| 27 | + BaseQuery Prefix(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
| 28 | + BaseQuery Prefix(string field, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
| 29 | + BaseQuery QueryString(Action<QueryStringDescriptor<T>> selector); |
| 30 | + BaseQuery Range(Action<RangeQueryDescriptor<T>> selector); |
| 31 | + BaseQuery SpanFirst(Action<SpanFirstQueryDescriptor<T>> selector); |
| 32 | + BaseQuery SpanNear(Action<SpanNearQueryDescriptor<T>> selector); |
| 33 | + BaseQuery SpanNot(Action<SpanNotQueryDescriptor<T>> selector); |
| 34 | + BaseQuery SpanOr(Action<SpanOrQueryDescriptor<T>> selector); |
| 35 | + BaseQuery SpanTerm(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null); |
| 36 | + BaseQuery SpanTerm(string field, string value, double? Boost = null); |
| 37 | + BaseQuery Term(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null); |
| 38 | + BaseQuery Term(string field, string value, double? Boost = null); |
| 39 | + BaseQuery Terms(System.Linq.Expressions.Expression<Func<T, object>> objectPath, params string[] terms); |
| 40 | + BaseQuery Terms(string field, params string[] terms); |
| 41 | + BaseQuery TermsDescriptor(Action<TermsQueryDescriptor<T>> selector); |
| 42 | + BaseQuery Text(Action<TextQueryDescriptor<T>> selector); |
| 43 | + BaseQuery TextPhrase(Action<TextPhraseQueryDescriptor<T>> selector); |
| 44 | + BaseQuery TextPhrasePrefix(Action<TextPhrasePrefixQueryDescriptor<T>> selector); |
| 45 | + BaseQuery Match(Action<MatchQueryDescriptor<T>> selector); |
| 46 | + BaseQuery MatchPhrase(Action<MatchPhraseQueryDescriptor<T>> selector); |
| 47 | + BaseQuery MatchPhrasePrefix(Action<MatchPhrasePrefixQueryDescriptor<T>> selector); |
| 48 | + BaseQuery MultiMatch(Action<MultiMatchQueryDescriptor<T>> selector); |
| 49 | + BaseQuery TopChildren<K>(Action<TopChildrenQueryDescriptor<K>> selector) where K : class; |
| 50 | + BaseQuery Wildcard(System.Linq.Expressions.Expression<Func<T, object>> fieldDescriptor, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
| 51 | + BaseQuery Wildcard(string field, string value, double? Boost = null, RewriteMultiTerm? Rewrite = null); |
| 52 | + } |
52 | 53 | }
|
0 commit comments