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

reindex fails #8

Closed
rudivandrunen-spronq opened this issue Mar 9, 2014 · 1 comment
Closed

reindex fails #8

rudivandrunen-spronq opened this issue Mar 9, 2014 · 1 comment
Assignees
Labels

Comments

@rudivandrunen-spronq
Copy link

Hi,

Thanks for fixing last bug / issue.... GREAT WORK !

I manually tried reindexing, but got the following error, Think, another issue...

bitnami@redmine:/opt/bitnami/apps/redmine/htdocs$ bundle exec rake redmine_elasticsearch:reindex_all RAILS_ENV=production
Loading Rails environment for Resque
Recreate index for all available search types
rake aborted! 77% ||||||||||||||||||||||||||||||||| | ETA: 00:00:01
undefined local variable or method project_id' for #<#<Class:0x00000006cefff8>:0x00000006cefe90> /opt/bitnami/apps/redmine/htdocs/plugins/redmine_elasticsearch/app/serializers/base_serializer.rb:12:in_parent'
(eval):4:in _fast_attributes' /opt/bitnami/apps/redmine/htdocs/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/serializer_service.rb:5:inserialize_to_json'

Maybe you can have a look :-)
Thanks !

Rudi

@nodecarter
Copy link
Contributor

Try to update plugin and run reindexing task again. Note that you can add additional columns to index. For example you can add KbArticle#tags by adding this code to YOUR_REDMINE_ROOT/config/additional_environment.rb:

config.additional_index_properties = {
    kb_articles: {
        tag_list: { type: 'string', index_name: 'tags' }
    }
}

After that you should reindex documents. And then you can search articles by tags:

tags:red OR tags:blue

@nodecarter nodecarter self-assigned this Mar 9, 2014
@nodecarter nodecarter added the bug label Mar 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants