This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class QueryStringSearchExtensions { | |
public static IQueriedSearch<TSource, QueryStringQuery> InAnalyzedField<TSource, TExistingQuery>( | |
this IQueriedSearch<TSource, TExistingQuery> search, | |
Expression<Func<TSource, string>> fieldSelector, | |
double? relativeImportance = null) | |
where TExistingQuery : QueryStringQuery | |
{ | |
fieldSelector.ValidateNotNullArgument("fieldSelector"); | |
return search.InField(search.Client.Conventions.FieldNameConvention.GetFieldNameForAnalyzed((Expression)fieldSelector), relativeImportance); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Nest; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace NestPercolation | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
OlderNewer