title: Algorithm to filter a treeview by title and description of a Item and show parents
body: <p>i have the follow treeview data:</p>
  
  <pre><code>  [  
      {  
        "id":132,
        "parent_id":0,
        "title":"Item 1",
        "description":"",
        "nodes":[  
          {  
            "id":133,
            "parent_id":132,
            "title":"Item 1.1",
            "description":"",
            "nodes":[  
              {  
                "id":134,
                "parent_id":133,
                "title":"Item 1.1.1",
                "description":"",
                "nodes":[],        
              }
            ]
          }
        ]
      },
      {
        "id":135,
        "parent_id":0,
        "title":"Item 2",
        "description":"",
        "nodes":[  ]
      },
      { 
        "id":136,
        "parent_id":0,
        "title":"Item 3",
        "description":"",
        "nodes":[ 
          { 
            "id":137,
            "parent_id":136,
            "title":"Item 3.1",
            "description":"",
            "nodes":[ ]    
          }
        ]
      }
    ]
  </code></pre>
  
  <p>I need to filter by Title and Description in all Children Values, and if find a child value, show all fathers, to follow the hierarchy.</p>
  
  <p>I tried to use some like this, but it is only for title of first parent:</p>
  
  <pre><code>   this.visible = function (item) {
      return !(this.query &amp;&amp; this.query.length &gt; 0 &amp;&amp;
        item.title.indexOf(this.query) == -1);
     };
  </code></pre>