def create(self, troveSpec, searchKey, affinityTroves, queryOptions):
        query = self.queryClass(troveSpec, searchKey)
        if affinityTroves:
            affinityTroves =  self.filterAffinityTroves(affinityTroves,
                                                        searchKey)
        if not affinityTroves:
            self.createQueryNoAffinity(query, searchKey, queryOptions)
        else:
            self.createQueryWithAffinity(query, searchKey, affinityTroves,
                                         queryOptions)
        return query
Returns a query for this searchKey
dataset/ETHPy150Open sassoftware/conary/conary/repository/findtrove.py/QuerySetFactory.create