int set_scope(int|string scope)
Sets value of scope for search operation.
The value can be one of the SCOPE_* constants or a string "base", "one" or "sub".
SCOPE_*
"base"
"one"
"sub"
Returns the SCOPE_* constant for the old scope.