Add full-text search for recipe titles
This commit is contained in:
parent
c24b0caeaf
commit
a3f61e3711
3 changed files with 122 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue