Is itposibel to make a query for a user, where you in the ecma script define the define search root

Regards