本文整理汇总了C#中QueryContainerDescriptor类的典型用法代码示例。如果您正苦于以下问题:C# QueryContainerDescriptor类的具体用法?C# QueryContainerDescriptor怎么用?C# QueryContainerDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QueryContainerDescriptor类属于命名空间,在下文中一共展示了QueryContainerDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.GeoShapeLineString(c => c
.Name("named_query")
.Boost(1.1)
.Field(p=>p.Location)
.Coordinates(this._coordinates)
);
示例2: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Terms(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Description)
.Terms(new List<string> { "term1", "term2" })
);
示例3: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Script(sn => sn
.Name("named_query")
.Boost(1.1)
.Inline(_templateString)
.Params(p=>p.Add("param1", 1))
);
示例4: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Filtered(c => c
.Name("named_query")
.Boost(1.1)
.Filter(qq => qq.MatchAll(m => m.Name("filter")))
.Query(qq => qq.MatchAll(m => m.Name("query")))
);
示例5: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Template(sn => sn
.Name("named_query")
.Boost(1.1)
.Inline(_templateString)
.Params(p=>p.Add("query_string", "all about search"))
);
示例6: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Ids(c => c
.Name("named_query")
.Boost(1.1)
.Values(1, 2, 3, 4)
.Types(typeof(Project), typeof(Developer))
);
示例7: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Terms(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Description)
.TermsLookup<Developer>(e=>e.Path(p=>p.LastName).Id(12))
);
示例8: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.SpanTerm(c => c
.Name("named_query")
.Boost(1.1)
.Field("user")
.Value("kimchy")
);
示例9: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.QueryString(c => c
.Name("named_query")
.Boost(1.1)
.Fields(f => f.Field(p=>p.Description).Field("myOtherField"))
.Query("hello world")
.DefaultField(p=>p.Description)
.DefaultOperator(Operator.Or)
.Analyzer("standard")
.QuoteAnalyzer("quote-an")
.AllowLeadingWildcard()
.AutoGeneratePhraseQueries()
.MaximumDeterminizedStates(2)
.LowercaseExpendedTerms()
.EnablePositionIncrements()
.Escape()
.UseDisMax()
.FuzzyPrefixLength(2)
.FuzzyMaxExpansions(3)
.FuzzyRewrite(RewriteMultiTerm.ConstantScore)
.Rewrite(RewriteMultiTerm.ConstantScore)
.Fuziness(Fuzziness.Auto)
.TieBreaker(1.2)
.AnalyzeWildcard()
.MinimumShouldMatch(2)
.QuoteFieldSuffix("'")
.Lenient()
.Locale("en_US")
.Timezone("root")
);
示例10: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Missing(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Description)
.NullValue()
.Existence()
);
示例11: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Wildcard(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Description)
.Value("p*oj")
.Rewrite(RewriteMultiTerm.TopTermsBoostN)
);
示例12: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.GeoShapePolygon(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.Location)
.Coordinates(this._coordinates)
.IgnoreUnmapped()
);
示例13: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Indices(c => c
.Name("named_query")
.Boost(1.1)
.Indices(Nest.Indices.All)
.Query(qq => qq.MatchAll())
.NoMatchQuery(NoMatchShortcut.All)
);
示例14: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Nested(c => c
.Name("named_query")
.Boost(1.1)
.InnerHits(i=>i.Explain())
.Query(qq=>qq.MatchAll())
.Path(p=>p.CuratedTags)
);
示例15: QueryFluent
protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
.Boosting(c => c
.Name("named_query")
.Boost(1.1)
.Positive(qq => qq.MatchAll(m => m.Name("filter")))
.Negative(qq => qq.MatchAll(m => m.Name("query")))
.NegativeBoost(1.12)
);