Add full-text search for recipe titles

This commit is contained in:
Greg Burri 2025-05-21 00:03:20 +02:00
parent c24b0caeaf
commit a3f61e3711
3 changed files with 122 additions and 2 deletions

View file

@ -51,6 +51,13 @@ pub struct Recipe {
pub groups: Vec<Group>,
}
#[derive(Debug, FromRow)]
pub struct RecipeSearchResult {
pub id: i64,
pub title: String,
pub title_highlighted: String,
}
#[derive(Debug, FromRow)]
pub struct Group {
pub id: i64,