Add hierarchical searches on attribute

For locate by layer, add the ability to search hierarchicaly.