Skip to content

Commit

Permalink
Rename Tokenizer to SearchTokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Oct 21, 2024
1 parent 30b560f commit 1ce788a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio.Parsers.SqlQueries/SqlQueryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private void SetupQueryVisitorContextDefaults(IQueryVisitorContext context)

if (context is ISqlQueryVisitorContext sqlContext)
{
sqlContext.Tokenizer = Configuration.SearchTokenizer;
sqlContext.SearchTokenizer = Configuration.SearchTokenizer;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ namespace Foundatio.Parsers.SqlQueries.Visitors;
public interface ISqlQueryVisitorContext : IQueryVisitorContext
{
List<EntityFieldInfo> Fields { get; set; }
Action<SearchTerm> Tokenizer { get; set; }
Action<SearchTerm> SearchTokenizer { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Foundatio.Parsers.SqlQueries.Visitors;
public class SqlQueryVisitorContext : QueryVisitorContext, ISqlQueryVisitorContext
{
public List<EntityFieldInfo> Fields { get; set; }
public Action<SearchTerm> Tokenizer { get; set; } = static _ => { };
public Action<SearchTerm> SearchTokenizer { get; set; } = static _ => { };
public IEntityType EntityType { get; set; }
}

Expand Down

0 comments on commit 1ce788a

Please sign in to comment.