@@ -110,6 +110,21 @@ public ResponseT hybrid(String query, Function<Aggregation.Builder, ObjectBuilde
110110 return hybrid (Hybrid .of (query ), fn );
111111 }
112112
113+ /**
114+ * Aggregate results of a hybrid search query.
115+ *
116+ * @param searchTarget Query target.
117+ * @param fn Lambda expression for optional aggregation parameters.
118+ * @return Aggregation result.
119+ *
120+ * @throws WeaviateApiException in case the server returned with an
121+ * error status code.
122+ * @see AggregateResponse
123+ */
124+ public ResponseT hybrid (Target searchTarget , Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ) {
125+ return hybrid (Hybrid .of (searchTarget ), fn );
126+ }
127+
113128 /**
114129 * Aggregate results of a hybrid search query.
115130 *
@@ -127,6 +142,23 @@ public ResponseT hybrid(String query, Function<Hybrid.Builder, ObjectBuilder<Hyb
127142 return hybrid (Hybrid .of (query , hybrid ), fn );
128143 }
129144
145+ /**
146+ * Aggregate results of a hybrid search query.
147+ *
148+ * @param searchTarget Query target.
149+ * @param hybrid Lambda expression for optional hybrid search parameters.
150+ * @param fn Lambda expression for optional aggregation parameters.
151+ * @return Aggregation result.
152+ *
153+ * @throws WeaviateApiException in case the server returned with an
154+ * error status code.
155+ * @see AggregateResponse
156+ */
157+ public ResponseT hybrid (Target searchTarget , Function <Hybrid .Builder , ObjectBuilder <Hybrid >> hybrid ,
158+ Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ) {
159+ return hybrid (Hybrid .of (searchTarget , hybrid ), fn );
160+ }
161+
130162 /**
131163 * Aggregate results of a hybrid search query.
132164 *
@@ -161,6 +193,25 @@ public GroupedResponseT hybrid(String query, Function<Aggregation.Builder, Objec
161193 return hybrid (Hybrid .of (query ), fn , groupBy );
162194 }
163195
196+ /**
197+ * Aggregate results of a hybrid search query.
198+ *
199+ * @param searchTarget Query target.
200+ * @param fn Lambda expression for optional aggregation parameters.
201+ * @param groupBy GroupBy clause.
202+ * @return Grouped aggregation result.
203+ *
204+ * @throws WeaviateApiException in case the server returned with an
205+ * error status code.
206+ *
207+ * @see GroupBy
208+ * @see AggregateResponseGrouped
209+ */
210+ public GroupedResponseT hybrid (Target searchTarget , Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ,
211+ GroupBy groupBy ) {
212+ return hybrid (Hybrid .of (searchTarget ), fn , groupBy );
213+ }
214+
164215 /**
165216 * Aggregate results of a hybrid search query.
166217 *
@@ -181,6 +232,26 @@ public GroupedResponseT hybrid(String query, Function<Hybrid.Builder, ObjectBuil
181232 return hybrid (Hybrid .of (query , hybrid ), fn , groupBy );
182233 }
183234
235+ /**
236+ * Aggregate results of a hybrid search query.
237+ *
238+ * @param searchTarget Query target.
239+ * @param hybrid Lambda expression for optional hybrid search parameters.
240+ * @param fn Lambda expression for optional aggregation parameters.
241+ * @param groupBy GroupBy clause.
242+ * @return Grouped aggregation result.
243+ *
244+ * @throws WeaviateApiException in case the server returned with an
245+ * error status code.
246+ *
247+ * @see GroupBy
248+ * @see AggregateResponseGrouped
249+ */
250+ public GroupedResponseT hybrid (Target searchTarget , Function <Hybrid .Builder , ObjectBuilder <Hybrid >> hybrid ,
251+ Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn , GroupBy groupBy ) {
252+ return hybrid (Hybrid .of (searchTarget , hybrid ), fn , groupBy );
253+ }
254+
184255 /**
185256 * Aggregate results of a hybrid search query.
186257 *
0 commit comments