javascript – Simple search in firebase using JS

My comic on firebase is organized this way. I wanted to search and return for example everyone who has TEST in name. I use this code in JS

(value), function (element) {{{{{{{{}}}}}
var ordList1 = document.createElement (& ol 39;);
ordList1.appendChild (document.createTextNode (item.val () .name));
userList.appendChild (ordList);

But he never returns anything, every adaptation I make that just post something always comes back NULL. I suspect that the problem could come from these automatic keys that are not filtered, but in the official documentation of Firebase, I have not found anything that can help me solve them.