diff options
author | Alan Pearce | 2024-12-30 19:03:15 +0100 |
---|---|---|
committer | Alan Pearce | 2024-12-30 19:03:15 +0100 |
commit | 7b5fc09fce4a41c2899a7157843b5d3106749b8b (patch) | |
tree | 29355743a5e5929b7aa5691b8085a9d9a02dfeed | |
parent | 8fcf4cf54ec26ce77a95e7c05a1183543fa4c105 (diff) | |
download | searchix-7b5fc09fce4a41c2899a7157843b5d3106749b8b.tar.lz searchix-7b5fc09fce4a41c2899a7157843b5d3106749b8b.tar.zst searchix-7b5fc09fce4a41c2899a7157843b5d3106749b8b.zip |
refactor: improve type hinting of setField
-rw-r--r-- | internal/index/search.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/index/search.go b/internal/index/search.go index c9f1dbd..9063f20 100644 --- a/internal/index/search.go +++ b/internal/index/search.go @@ -85,10 +85,10 @@ func (index *ReadIndex) GetSource( return result, nil } -func setField( - q query.FieldableQuery, +func setField[T query.FieldableQuery]( + q T, field string, -) query.FieldableQuery { +) T { q.SetField(field) return q |