Indexing only works if I upload the file using Share GUI

cancel
Showing results for 
Search instead for 
Did you mean: 
gkeuss
Active Member

Re: Indexing only works if I upload the file using Share GUI

Hello,

Thank you for your interest in this subject.

Content indexing does not work on our part when using bulk import to add a document to the repository.

Can you initiate a bulk import test ? http://localhost:8080/alfresco/service/bulkfsimport

angelborroy
Alfresco Employee

Re: Indexing only works if I upload the file using Share GUI

Is this the addon you are using?

https://github.com/pmonks/alfresco-bulk-import

Hyland Developer Evangelist
gkeuss
Active Member

Re: Indexing only works if I upload the file using Share GUI

I think so, I was not aware that it was an addon. 

I use bulk import from this documentation  :https://docs.alfresco.com/content-services/latest/admin/import-transfer

 

angelborroy
Alfresco Employee

Re: Indexing only works if I upload the file using Share GUI

So I guess you're using this one...

https://github.com/Alfresco/alfresco-file-transfer-receiver

Ok, let me check it.

Hyland Developer Evangelist
gkeuss
Active Member

Re: Indexing only works if I upload the file using Share GUI

In the documentation (https://docs.alfresco.com/content-services/latest/admin/import-transfer/) I use this paragraph : "Import with the Bulk Import tool", but I do not use the "Configure File System Transfer Receiver" paragraph.

Like you said, bulk import tool relates to https://github.com/pmonks/alfresco-bulk-import

angelborroy
Alfresco Employee

Re: Indexing only works if I upload the file using Share GUI

From the source code, I guess that you need to add following property to alfresco-global.properties or as environment variable in Docker.

contentPropertyRestrictions.enabled=false

Since I didn't try that, let me know if that fix the issue.

Hyland Developer Evangelist
angelborroy
Alfresco Employee

Re: Indexing only works if I upload the file using Share GUI

In fact, I've found this notes from the author of the addon:

https://github.com/pmonks/alfresco-bulk-import/wiki/Configuration

So that should be related with that "contentPropertyRestrictions" configuration (for sure).

Hyland Developer Evangelist
gkeuss
Active Member

Re: Indexing only works if I upload the file using Share GUI

I made a test :  files are imported, metadata are indexed, but unfortunately not the contents.

I have put the parameter (contentPropertyRestrictions.enabled=false) in the following file : /usr/local/tomcat/shared/classes/alfresco-global.properties

gkeuss
Active Member

Re: Indexing only works if I upload the file using Share GUI

Indexation of contents while doing a bulk import now works using Alfresco bulk import 2.1.0 (https://github.com/pmonks/alfresco-bulk-import/releases).

ymartin
Member II

Re: Indexing only works if I upload the file using Share GUI

Here is an hypothesis that may explain this behavior:

the Alfresco instance has not cross-locale support enabled https://docs.alfresco.com/insight-engine/latest/config/indexing/#cross-locale so a document inserted by webdav (or API, or bulkimport) is indexed with "system locale" whereas a document inserted by browser depends on browser/workstation locale.

When running everything on Ubuntu, your locale is "consistent" (the same value) for both system and browser.

Ideas how to fix:

  • either enable cross-locale support according to Search Service documentation, for instance when deploying with Docker refer to https://github.com/aborroy/search-services-cross-locale
  • either enforce your system locale so that Alfresco processes run with same locale as your browsers' users under the condition that all your users use the same single locale... (IMO not obvious at all)

Hope this helps