diff --git a/src/Foundatio.Parsers.SqlQueries/Extensions/SqlNodeExtensions.cs b/src/Foundatio.Parsers.SqlQueries/Extensions/SqlNodeExtensions.cs index 9888e2c1..cf9e9efb 100644 --- a/src/Foundatio.Parsers.SqlQueries/Extensions/SqlNodeExtensions.cs +++ b/src/Foundatio.Parsers.SqlQueries/Extensions/SqlNodeExtensions.cs @@ -138,7 +138,7 @@ public static string ToDynamicLinqString(this TermNode node, ISqlQueryVisitorCon fieldTerms[fieldInfo] = searchTerm; } - context.Tokenizer.Invoke(searchTerm); + context.SearchTokenizer.Invoke(searchTerm); } fieldTerms.ForEach((kvp, x) => diff --git a/src/Foundatio.Parsers.SqlQueries/SqlQueryParser.cs b/src/Foundatio.Parsers.SqlQueries/SqlQueryParser.cs index e13cfdc5..65ed49d0 100644 --- a/src/Foundatio.Parsers.SqlQueries/SqlQueryParser.cs +++ b/src/Foundatio.Parsers.SqlQueries/SqlQueryParser.cs @@ -192,7 +192,7 @@ private void SetupQueryVisitorContextDefaults(IQueryVisitorContext context) if (context is ISqlQueryVisitorContext sqlContext) { - sqlContext.Tokenizer = Configuration.SearchTokenizer; + sqlContext.SearchTokenizer = Configuration.SearchTokenizer; } } } diff --git a/src/Foundatio.Parsers.SqlQueries/Visitors/ISqlQueryVisitorContext.cs b/src/Foundatio.Parsers.SqlQueries/Visitors/ISqlQueryVisitorContext.cs index c0554c30..c0d549a8 100644 --- a/src/Foundatio.Parsers.SqlQueries/Visitors/ISqlQueryVisitorContext.cs +++ b/src/Foundatio.Parsers.SqlQueries/Visitors/ISqlQueryVisitorContext.cs @@ -7,5 +7,5 @@ namespace Foundatio.Parsers.SqlQueries.Visitors; public interface ISqlQueryVisitorContext : IQueryVisitorContext { List Fields { get; set; } - Action Tokenizer { get; set; } + Action SearchTokenizer { get; set; } } diff --git a/src/Foundatio.Parsers.SqlQueries/Visitors/SqlQueryVisitorContext.cs b/src/Foundatio.Parsers.SqlQueries/Visitors/SqlQueryVisitorContext.cs index 90cf32be..f2a9be84 100644 --- a/src/Foundatio.Parsers.SqlQueries/Visitors/SqlQueryVisitorContext.cs +++ b/src/Foundatio.Parsers.SqlQueries/Visitors/SqlQueryVisitorContext.cs @@ -9,7 +9,7 @@ namespace Foundatio.Parsers.SqlQueries.Visitors; public class SqlQueryVisitorContext : QueryVisitorContext, ISqlQueryVisitorContext { public List Fields { get; set; } - public Action Tokenizer { get; set; } = static _ => { }; + public Action SearchTokenizer { get; set; } = static _ => { }; public IEntityType EntityType { get; set; } }