Skip to content

Commit

Permalink
fix ES query for nested aggregations so that _source finds right item
Browse files Browse the repository at this point in the history
  • Loading branch information
wkdewey committed Dec 9, 2024
1 parent 39cf19f commit ae7f0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/search_item_req.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def facets
"top_matches" => {
"top_hits" => {
"_source" => {
"includes" => [ agg_name ]
"includes" => [ facet ]
},
"size" => 1
}
Expand Down

0 comments on commit ae7f0a8

Please sign in to comment.