File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def get(
4848 def aggs (
4949 class_name :,
5050 fields : nil ,
51+ where : nil ,
5152 object_limit : nil ,
5253 near_text : nil ,
5354 near_vector : nil ,
@@ -59,6 +60,7 @@ def aggs(
5960 aggs_query (
6061 class_name : class_name ,
6162 fields : fields ,
63+ where : where ,
6264 near_text : near_text ,
6365 near_vector : near_vector ,
6466 near_image : near_image ,
@@ -183,6 +185,7 @@ def get_query(
183185 def aggs_query (
184186 class_name :,
185187 fields :,
188+ where : nil ,
186189 near_text : nil ,
187190 near_vector : nil ,
188191 near_image : nil ,
@@ -200,7 +203,8 @@ def aggs_query(
200203 #{ near_text . present? ? "nearText: #{ near_text } " : "" } ,
201204 #{ near_vector . present? ? "nearVector: #{ near_vector } " : "" } ,
202205 #{ near_image . present? ? "nearImage: #{ near_image } " : "" } ,
203- #{ near_object . present? ? "nearObject: #{ near_object } " : "" }
206+ #{ near_object . present? ? "nearObject: #{ near_object } " : "" } ,
207+ #{ where . present? ? "where: #{ where } " : "" }
204208 ) {
205209 #{ fields }
206210 }
You can’t perform that action at this time.
0 commit comments