about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--internal/index/search.go6
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