Equipment search across the layers

Discussion created by bforbhavin on Jun 19, 2014
Latest reply on Jul 18, 2014 by ykchin
How can I perform search across the layers? I need to search provided equipment across the layers and other equipment too which are falling in the given radius. e.g. Search all equipment across 5 layers based on the selected equipment (or it's geometry) and provided radius. Radius can be different for each layer.  

I use following logic but I am thinking may be if there is any better way.

1) Find out equipment's geometry by using QueryTask
2) Create instance of Circle based on the geometry I get from point # 1 for all layers and query again for all layers.

Any suggestions?