(self, obj)
Perform enrichment on the query value.
Perform enrichment on the query value.
Perform enrichment on the query value .
def do_enrichment_query(self, obj):
        """Perform enrichment on the query value."""
        client = self._generate_request_instance('enrichment')
        query = self._get_query_type(obj)
        results = client.get_enrichment(query=query)
        self._check_response(results)
        for key, value in iteritems(results):
            if not value or value == '':
                continue
            self._add_result("Enrichment", value,
                             {'Key': self._gen_label(key)})
def do_enrichment_query ( self , obj ) : client = self . _generate_request_instance ( 'enrichment' ) query = self . _get_query_type ( obj ) results = client . get_enrichment ( query = query ) self . _check_response ( results ) for key , value in iteritems ( results ) : if not value or value == '' : continue self . _add_result ( "Enrichment" , value , { 'Key' : self . _gen_label ( key ) } )