(self)
return self._labels
Property that returns the SearchIndex labels.
Property that returns the SearchIndex labels.
Property that returns the SearchIndex labels .
def labels(self):
        """Property that returns the SearchIndex labels."""
        if self._labels:
            return self._labels

        index_data = self._get_object_dict()
        if not index_data:
            return self._labels

        label_string = index_data.get('label_string', '')
        if label_string:
            self._labels = json.loads(label_string)
        else:
            self._labels = []

        return self._labels
def labels ( self ) : if self . _labels : return self . _labels index_data = self . _get_object_dict ( ) if not index_data : return self . _labels label_string = index_data . get ( 'label_string' , '' ) if label_string : self . _labels = json . loads ( label_string ) else : self . _labels = [ ] return self . _labels