title: AngularJS filter only on certain objects
body: <p>I have the user object defined as below.</p>
  
  <pre><code>$scope.user = [{id: 1, friends:
      [
          {name: 'John', age: 21, sex: 'M'},
          {name: 'Brad', age: 32, sex: 'M'}
      ]
  }]
  </code></pre>
  
  <p>I have the following code:</p>
  
  <pre><code>&lt;input type="text" ng-model="searchText"&gt;
  &lt;div ng-repeat="friend in user.friends | filter:searchText"&gt;
    {{friend.name}} {{friend.age}}
  &lt;/div&gt;
  </code></pre>
  
  <p>Here whenever I search, I get results for name, age as well as sex. But I want to search only for name and age and I don't want sex to be searchable. Can anyone help me with how I can achieve this?</p>