Defined in File hierarchy_tree-inl.h
select from node1 and node2 which is close to a given query. 0 for node1 and 1 for node2