mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Abschluss Bandsuche
This commit is contained in:
@@ -43,14 +43,13 @@ func BasicSearchSeries(app core.App, query string) ([]*Series, []*Series, error)
|
||||
|
||||
// INFO: Needing to differentiate matches
|
||||
querysplit := NormalizeQuery(query)
|
||||
if len(querysplit) == 0 {
|
||||
req := IntoQueryRequests([]string{SERIES_TITLE_FIELD, ANNOTATION_FIELD, REFERENCES_FIELD}, querysplit)
|
||||
|
||||
if len(req) == 0 {
|
||||
return series, []*Series{}, nil
|
||||
}
|
||||
|
||||
altids, err := FTS5Search(app, SERIES_TABLE, FTS5QueryRequest{
|
||||
Fields: []string{SERIES_TITLE_FIELD, ANNOTATION_FIELD, REFERENCES_FIELD},
|
||||
Query: querysplit,
|
||||
})
|
||||
altids, err := FTS5Search(app, SERIES_TABLE, req...)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user