only create the necesary joins per search
Merge pull request #18 from eschuhmacher/master

only create the necesary joins per search