Filtr Angularjs zagnieżdżony obiekt

Mam taki kątowy obiekt zagnieżdżony. czy istnieje sposób na filtrowanie dla właściwości zagnieżdżonych

<li ng-repeat="shop in shops | filter:search">
search.locations.city_id = 22

Pokazuję tylko element nadrzędny, ale chcę filtrować według obu, np .:

search = 
  category_id: 2
  locations:
    city_id: 368

[
 name: "xxx"
 category_id: 1
 locations: [
   city_id: 368
   region_id: 4
  ,
   city_id: 368
   region_id: 4
  ,
   city_id: 368
   region_id: 4
  ]
,
 name: "xxx"
 category_id: 2
 locations: [
   city_id: 30
   region_id: 4
  ,
   city_id: 22
   region_id: 2
  ]
]

questionAnswers(3)

yourAnswerToTheQuestion