From 1ce788a749e33cadf9b9fb37885c040a3265b8bf Mon Sep 17 00:00:00 2001 From: "Eric J. Smith" Date: Mon, 21 Oct 2024 13:40:17 -0500 Subject: [PATCH] Rename Tokenizer to SearchTokenizer --- .../Extensions/SqlNodeExtensions.cs | 2 +- src/Foundatio.Parsers.SqlQueries/SqlQueryParser.cs | 2 +- .../Visitors/ISqlQueryVisitorContext.cs | 2 +- .../Visitors/SqlQueryVisitorContext.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; } }