Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Indexing 0 titles (at rebuild_index command) #109

Open
srinathganesh opened this issue Mar 8, 2021 · 1 comment
Open

Problem: Indexing 0 titles (at rebuild_index command) #109

srinathganesh opened this issue Mar 8, 2021 · 1 comment

Comments

@srinathganesh
Copy link

Objective for me:

  • Get full text search capability of all CMS Pages
  • Whatever is the blog content, will be indexed and searched

Progress:

I created a solr docker

version: '2'
services:
  solr:
    image: 'docker.io/bitnami/solr:8-debian-10'
    environment:
      - SOLR_ENABLE_AUTHENTICATION=yes
      - SOLR_ADMIN_USERNAME=foo
      - SOLR_ADMIN_PASSWORD=bar
      - SOLR_CORE=core1
    ports:
      - '8983:8983'

Versions:

  • django-cms==3.8
  • aldryn-search latest
  • pysolr latest

Installed apps

'cms',
 'haystack',
 'aldryn_common',
 'aldryn_search',
'standard_form',
'spurl',

Settings.py extra

HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
        'URL': 'http://foo:bar@192.168.29.10:8983/solr/core1/',
        'TIMEOUT': 60 * 5,
        'INCLUDE_SPELLING': True,
        'BATCH_SIZE': 100,
    },
    'en': {
        'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
        'URL': 'http://foo:bar@192.168.29.10:8983/solr/core1/',
        'TIMEOUT': 60 * 5,
        'INCLUDE_SPELLING': True,
        'BATCH_SIZE': 100,
    },
}

HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter',]
ALDRYN_SEARCH_DEFAULT_LANGUAGE = "en"
ALDRYN_SEARCH_REGISTER_APPHOOK = True
ALDRYN_SEARCH_LANGUAGE_FROM_ALIAS = lambda alias: alias.split('-')[-1]

Command:

python3 manage.py rebuild_index

output:
Indexing 0 titles
Indexing 0 titles
@osamana
Copy link

osamana commented Jun 4, 2022

Same issue here. I gave up using aldryn-search. it's deprecated.

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

No branches or pull requests

2 participants