当前位置: 首页>>代码示例>>C#>>正文


C# QueryContainerDescriptor类代码示例

本文整理汇总了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)
			);
开发者ID:michaelbudnik,项目名称:elasticsearch-net,代码行数:7,代码来源:GeoLineStringUsageTests.cs

示例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" })
			);
开发者ID:niemyjski,项目名称:elasticsearch-net,代码行数:7,代码来源:TermsListQueryUsageTests.cs

示例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))
			);
开发者ID:emohebi,项目名称:elasticsearch-net,代码行数:7,代码来源:ScriptQueryUsageTests.cs

示例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")))
			);
开发者ID:emohebi,项目名称:elasticsearch-net,代码行数:7,代码来源:FilteredQueryUsageTests.cs

示例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"))
			);
开发者ID:emohebi,项目名称:elasticsearch-net,代码行数:7,代码来源:TemplateQueryUsageTests.cs

示例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))
			);
开发者ID:jweber,项目名称:elasticsearch-net,代码行数:7,代码来源:IdsQueryUsageTests.cs

示例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))
			);
开发者ID:michaelbudnik,项目名称:elasticsearch-net,代码行数:7,代码来源:TermsLookupQueryUsageTests.cs

示例8: QueryFluent

		protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project> q) => q
			.SpanTerm(c => c
				.Name("named_query")
				.Boost(1.1)
				.Field("user")
				.Value("kimchy")
			);
开发者ID:c1sc0,项目名称:elasticsearch-net,代码行数:7,代码来源:SpanTermQueryUsageTests.cs

示例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")
			);
开发者ID:emohebi,项目名称:elasticsearch-net,代码行数:30,代码来源:QueryStringUsageTests.cs

示例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()
			);
开发者ID:emohebi,项目名称:elasticsearch-net,代码行数:8,代码来源:MissingQueryUsageTests.cs

示例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)
			);
开发者ID:c1sc0,项目名称:elasticsearch-net,代码行数:8,代码来源:WildcardQueryUsageTests.cs

示例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()
			);
开发者ID:c1sc0,项目名称:elasticsearch-net,代码行数:8,代码来源:GeoPolygonUsageTests.cs

示例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)
			);
开发者ID:emohebi,项目名称:elasticsearch-net,代码行数:8,代码来源:IndicesNoMatchQueryUsageTests.cs

示例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)
			);
开发者ID:emohebi,项目名称:elasticsearch-net,代码行数:8,代码来源:NestedQueryUsageTests.cs

示例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)
			);
开发者ID:c1sc0,项目名称:elasticsearch-net,代码行数:8,代码来源:BoostingQueryUsageTests.cs


注:本文中的QueryContainerDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。