def get_indexable(percent=100, mapping_types=None):
 from kitsune.search.models import get_mapping_types
 mapping_types = get_mapping_types(mapping_types)
 to_index = []
 percent = (float(percent) / 100)
 for cls in mapping_types:
  indexable = cls.get_indexable()
  if (percent < 1):
   indexable = indexable[:int((indexable.count() * percent))]
  to_index.append((cls, indexable))
 return to_index

def get_indexable ( percent = 100 , mapping_types = None ) : from kitsune . search . models import get_mapping_types mapping_types = get_mapping_types ( mapping_types ) to_index = [ ] percent = ( float ( percent ) / 100 ) for cls in mapping_types : indexable = cls . get_indexable ( ) if ( percent < 1 ) : indexable = indexable [ : int ( ( indexable . count ( ) * percent ) ) ] to_index . append ( ( cls , indexable ) ) return to_index
returns a list of for all the things to index :arg percent: defaults to 100 .