app/views/search.py
def refresh_index(self):
        """
        Refreshes all the items in the index
        """
        from itertools import chain

        items = chain(
            BasicChoice.objects.all(), LinearChoice.objects.all(), SubChoice.objects.all(),
            TraitGroup.objects.all(),
            BasicTrait.objects.all(), LinearTrait.objects.all(),
        )

        writer = self.index.writer()

        for item in items:
            data = self.index_data(item)
            writer.update_document(**data)
        writer.commit()

        Refreshes all the items in the index
        
Refreshes all the items in the index
Refreshes all the items in the index
def refresh_index(self):
        from itertools import chain
        items = chain(
            BasicChoice.objects.all(), LinearChoice.objects.all(), SubChoice.objects.all(),
            TraitGroup.objects.all(),
            BasicTrait.objects.all(), LinearTrait.objects.all(),
        )
        writer = self.index.writer()
        for item in items:
            data = self.index_data(item)
            writer.update_document(**data)
        writer.commit()
def refresh_index ( self ) : from itertools import chain items = chain ( BasicChoice . objects . all ( ) , LinearChoice . objects . all ( ) , SubChoice . objects . all ( ) , TraitGroup . objects . all ( ) , BasicTrait . objects . all ( ) , LinearTrait . objects . all ( ) , ) writer = self . index . writer ( ) for item in items : data = self . index_data ( item ) writer . update_document ( ** data ) writer . commit ( )
Refreshes all the items in the index
Refreshes all the items in the index
"""
        Refreshes all the items in the index
        """
self