from haystack import indexes
from pylinks.links.models import Link


class LinkIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Link

from haystack import indexes
from pylinks.links.models import Link


class LinkIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Link

Switch to real-time index (easier for low volume)
Switch to real-time index (easier for low volume)
