about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorAlan Pearce2024-07-12 21:10:47 +0200
committerAlan Pearce2024-07-12 21:20:15 +0200
commita5f58bc7fe205b8ff84f6b654513e40bfbc61ae9 (patch)
treef3bc9d7cc99fa0df6d730ccbb9ae0389938e9af5 /internal/config/config.go
parent9440d2fc4250e733e1dbe25303bd2407642ff28c (diff)
downloadsearchix-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.go6
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
 }