def get(self, q, limit=None):
        """
        Performs a search against the predict endpoint

        :param q: query to be searched for [STRING]
        :return: { score: [0|1] }
        """
        uri = '{}/predict?q={}'.format(self.client.remote, q)
        self.logger.debug(uri)

        body = self.client.get(uri)
        return body['score']
def get ( self , q , limit = None ) : uri = '{}/predict?q={}' . format ( self . client . remote , q ) self . logger . debug ( uri ) body = self . client . get ( uri ) return body [ 'score' ]
Performs a search against the predict endpoint

        :param q: query to be searched for [STRING]
        :return: { score: [0|1] }