I started experiments on Django-haystack and elastic search.
using:
django-haystack==2.4.0
elasticsearch==1.6.0
models.py
class Skill(models.Model):
name = models.CharField(max_length=100)
class City(models.Model):
name = models.CharField(max_length=100)
I want to create one search index for above models:
class multiIndex(indexes.SearchIndex, indexes.Indexable):
#other code
def get_model(self):
return (Skill, City)
is it possible to create search index with multiple models. or i have to create multiple search indexes for multiple models.
Note: both models are completely independent.