Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Articles are not indexed on django-haystack #468

Open
lucashelfs opened this issue Aug 8, 2017 · 0 comments
Open

Articles are not indexed on django-haystack #468

lucashelfs opened this issue Aug 8, 2017 · 0 comments

Comments

@lucashelfs
Copy link

Hi, I've been struggling with this for the past few weeks. I'm not able to index aldryn-newsblog content to django-haystack. I'm using ElasticSearch and it is properly configured, I also tried to use a SimpleBackend and it didn't worked.

When I run:

python manage.py rebuild_index or python manage.py rebuild_index -v2

I get:

Indexing 0 titles
Indexing 0 articles
Indexing 0 People

I've also run python manage.py rebuild_article_search_data and nothing is shown on screen.

I've installed aldryn-newsblog(version=1.3.1), aldryn-search(version-0.3.0) and django-haystack(version=2.6.0).

These are my configurations:

`HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine',
'URL': 'http://127.0.0.1:9200/',
'INDEX_NAME': 'haystack',
},
}

HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter',]
ALDRYN_SEARCH_LANGUAGE_FROM_ALIAS = lambda alias: alias.split('-')[-1]
ALDRYN_NEWSBLOG_SEARCH = True`

Any help would be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant