diff options
author | Alan Pearce | 2024-07-12 21:10:47 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-12 21:20:15 +0200 |
commit | a5f58bc7fe205b8ff84f6b654513e40bfbc61ae9 (patch) | |
tree | f3bc9d7cc99fa0df6d730ccbb9ae0389938e9af5 /internal/config/config.go | |
parent | 9440d2fc4250e733e1dbe25303bd2407642ff28c (diff) | |
download | searchix-a5f58bc7fe205b8ff84f6b654513e40bfbc61ae9.tar.lz searchix-a5f58bc7fe205b8ff84f6b654513e40bfbc61ae9.tar.zst searchix-a5f58bc7fe205b8ff84f6b654513e40bfbc61ae9.zip |
fix: opensearch searches not using input query
Diffstat (limited to 'internal/config/config.go')
-rw-r--r-- | internal/config/config.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index f3c0b57..b5f2ee4 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -35,10 +35,8 @@ func (u *URL) JoinPath(elems ...string) *URL { return &URL{u.URL.JoinPath(elems...)} } -func (u *URL) AddQuery(key, value string) *URL { - q := u.URL.Query() - q.Add(key, value) - u.RawQuery = q.Encode() +func (u *URL) AddRawQuery(key, value string) *URL { + u.RawQuery = key + "=" + value return u } |