hansTheFranz
hansTheFranz

Reputation: 2580

Django Wagtail/Haystack Search with Heroku

I uploaded my project to heroku and I have a Search engine which works on local development and I would like to make it work in production as well. I used Wagtails Search since it was super easy to install and configure but it seems not to be a proper solution for production. This was my configuration:

WAGTAILSEARCH_BACKENDS = {
'default': {
    'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch5',
    'URLS': [u'http://localhost:9200'],
    'INDEX': 'wagtail',
    'TIMEOUT': 5,
    'OPTIONS': {},
    'INDEX_SETTINGS': {},
    "ATOMIC_REBUILD":True
  }
}

Heroku can't connect to Port 9200 and when I stated to read into the the configurations it seemed to be easier to use Haystack/Solr. This Heroku Article suggests to use the add-on "SearchBox Elasticsearch" but I cannot add any addons at the moment. So my Questions are:

  1. Can I run the normal Haystack/Wagtail search without the Heroku add-on?
  2. How do I make the 9200 Port accessible for Heroku?
  3. Would it make sense to upgrade to Haystack? Is Wagtail scalable in production? anybody made any experience in production?

Im quite happy with Wagtail since everything works as it should and I don't want to change something that does the job. Hope somebody can enlighten me.

Upvotes: 0

Views: 447

Answers (1)

gasman
gasman

Reputation: 25292

If you're using PostgreSQL as your database, a good option is to use Wagtail's PostgreSQL full-text search backend. It's fairly close in functionality to Elasticsearch, production-ready for large sites, and doesn't require running an external service.

Upvotes: 1

Related Questions