clear-code / redmine_full_text_search

Full text search for Redmine
MIT License
61 stars 24 forks source link

full_text_search:synchronize doesn't synchronize attachments in documents #92

Closed ioio000 closed 4 years ago

ioio000 commented 4 years ago

I installed full_text_search and performed a data sync, but the text in existing attachments (docx, xlsx...etc) is not searched. When I newly attach the same file, the text in that file is searchable.

bundle exec rake redmine:plugins:migrate RAILS_ENV=production Need other commands?

Environment: bitnami-redmine-4.1.1-2-windows-x64 mariadb-10.4.8-with-mroonga-9.09-winx64 full_text_search 1.0.3

kou commented 4 years ago

You need to run the full_text_search:synchronize task: https://github.com/clear-code/redmine_full_text_search#synchronize-data

ioio000 commented 4 years ago

I missed writing commands. bundle exec rake full_text_search:synchronize RAILS_ENV=production

After syncing I can search for tickets and wiki strings. It was not possible to search the text of an attachment that already exists.

kou commented 4 years ago

Could you attach log/production.log while you run full_text_search:synchronize?

ioio000 commented 4 years ago

I tried it in a test environment. Please check the log attached. The xlsx file was able to be searched. command.log production.log

Search results after synchronization

1

User document has "test.docx" file but it is not searched.

2

The same "test.docx" file as "test (1).docx" was added.

3

I can find the search string in the "test (1).docx" file.

4
kou commented 4 years ago

Thanks. I've fixed it.

Could you upgrade to the master and re-run full_text_search:synchronize?

ioio000 commented 4 years ago

ok. It works. Thanks.