[ware]Improve IN_TREE query performance

In place of recursive calling, call Solr two times by seeing the path
field.