diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-07-04 17:40:03 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-07-04 17:40:03 -0700 |
commit | af15412954b9b36365f3fd723bf91b3c7c2f88bd (patch) | |
tree | 1060188e10de44356ef9278c3dc0f06c74c67f6c /api | |
parent | 89e5dacca9359b49c21e052e39206ad1c07ebbf1 (diff) |
Add full-text search for entries and add search parameter to the API
Diffstat (limited to 'api')
-rw-r--r-- | api/entry.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/entry.go b/api/entry.go index 6d1167b..a6785fb 100644 --- a/api/entry.go +++ b/api/entry.go @@ -248,4 +248,9 @@ func configureFilters(builder *storage.EntryQueryBuilder, r *http.Request) { if request.HasQueryParam(r, "starred") { builder.WithStarred() } + + searchQuery := request.QueryParam(r, "search", "") + if searchQuery != "" { + builder.WithSearchQuery(searchQuery) + } } |