Change the way composite search is run. This is after the realization that we have to only search the entity tree that is sufficient to evaluate the input search criteria. Once the result set is constructed using the input search criteria, we retrieve the documents using the trivial query plan that is structurally identical to the composite metadata. Of course, if the search criteria only refers to root, there is no need to search and retrieve, and we can simply search/retrieve the complete entity tree in one shot.
Uncomment unit tests
Merge pull request #258 from bserdar/search-doesnt-need-all-nodes

Search doesnt need all nodes