A lightweight ASP.NET Core Razor Pages application for searching foods based on user-provided ingredient keywords.
- Input phrase processing and keyword extraction
- Ingredient-to-food matching using Entity Framework Core
- Modular structure with separate services (
PhraseSplitter,Algorithm) - Simple integration with any SQL-based database
- Designed for easy extension and testing
The search logic works as follows:
- Splits the user query into individual keywords.
- Finds ingredients whose names contain any of those keywords.
- Retrieves foods that include those matched ingredients.
- Returns a distinct list of matching food names.
The current approach is keyword-based and straightforward, but open for smarter enhancements like fuzzy matching or semantic search.
- ASP.NET Core Razor Pages
- Entity Framework Core
- SQL Server (or compatible)
- C#