Reputation: 2580
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:
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
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