cancel
Showing results for 
Search instead for 
Did you mean: 

Indexing only works if I upload the file using Share GUI

Jhousyfran
Champ on-the-rise
Champ on-the-rise

When uploading a file, I expect the content to be indexed so that I am able to search it. This works when I upload the file to the Alfresco Share interface.

However, when I use the CMIS import tool, webdav, or the bulk filing system, the metadata is indexed, but the content isn't. 

All the metadata looks the same. And even when I delete data from Solr to force a reindexing, the only content that is indexed is the content of the files I uploaded with Share GUI.

When I increase the Solr debug logging level (like this: https://docs.alfresco.com/5.2/tasks/set-solr-log4j.html), the logs of the files that were sent through the interface and indexed are the same as the logs of the files that were sent via WebDav and not indexed.
 
File indexed by the interface:
2020-02-21 21:36:40.251 DEBUG (org.alfresco.solr.AlfrescoCoreAdminHandler@548d708a_Worker-22) [   ] o.a.s.t.MetadataTracker Node [id=879, nodeRef=workspace://SpacesStore/a6ffb77b-7690-4f3f-8a73-074dc406bc46, txnId=27, status=UPDATED, tenant=, aclId=11, shardPropertyValue=null]
 
File sent via WebDav:
2020-02-21 21:39:10.113 DEBUG (org.alfresco.solr.AlfrescoCoreAdminHandler@548d708a_Worker-36) [   ] o.a.s.t.MetadataTracker Node [id=885, nodeRef=workspace://SpacesStore/f2510e59-43ca-41e2-899f-a574bea41222, txnId=33, status=UPDATED, tenant=, aclId=11, shardPropertyValue=null]
 
I couldn't find a solution to this issue.
This is easy to replicate with the docker community deployment in version 6.2.0-ga.
The log files also do not report any errors.
30 REPLIES 30

Zozo
Champ in-the-making
Champ in-the-making

Hi,

Any solution regarding this issue? I have the same issue with my installation, the contents of documents is only indexed if I upload them through the user GUI. Same issue for documents uploaded with IMAP.

Thanks,

ludoADV
Confirmed Champ
Confirmed Champ

Hi,

Same issue. Any idea to fix it ?

Regards,

ulrichj
Champ on-the-rise
Champ on-the-rise

hello,

I have the same issue with webDav or CMIS

Ubuntu 18.04.5 LTS

alfresco 6.2 with Docker-compose

I have the same issue with Alfresco 7.0

search query : a word in the content.

Object indexed (with Share)

Thanks

vchiarello
Champ in-the-making
Champ in-the-making

Hi all,

have anyone a solution for this issue?

I have the same problem on a Community - 7.1.0 (re109bcda-blocal) installation in a docker container on a windows 10 PC.

If I upload a text file from alfresco share and I search for content all works well.

If I upload the same file from REST api I'm not able to search its content.

Thanks in advance for any contribution

Vito

dgarcie
Champ in-the-making
Champ in-the-making

Hi,

We are having the same problem. If documents are uploaded through Share and properties set there, we can find the file through the advanced search with no problems.

However, documents uploaded through the REST API with their properties set can't be found using specific custom fields in the custom forms in advanced search, although using a query (eg. cg:customType:NiceCompany) in the simple search bar manages to find the file. The thing that is more interesting though is that if the properties of the file uploaded throught the REST API are modified throught the Share UI then the file CAN be found using advanced search, but not before. 

I'm really confused with this. It seems that the REST API uploaded file is indexed but advanced search only manages to find it through custom forms if any property is modified latter through Share.

We are using a Docker deployment with Alfresco 6.2 version.

Hello everyone, I have the same problem using Alfresco 6.1 with docker. Someone was able to solve it.
Thank you very much in any case

Hello,

We have the same issue using Alfresco 6.2 with docker.

Content is indexed when importing a document, but not when imported with bulk import.

Hi, Did you find any solution?

Regards

Hello,

I can reproduce the Issue with Alfreco Content Services 7.2

I made a local test.

Docker Compose deployment with https://github.com/alfresco/alfresco-docker-installer (choosing 7.1 version).

Upload a new file with following command (not accesing Share or any other app)

curl -u admin:admin -X POST http://127.0.0.1:8080/
alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children -F filedata=@test.txt
{"entry":{"isFile":true,"createdByUser":{"id":"admin","displayName":"Administrator"},"modifiedAt":"2022-02-16T14:17:58.567+0000","nodeType":"cm:content","content":{"mimeType":"text/plain","mimeTypeName":"Plain Text","sizeInBytes":10,"encoding":"UTF-8"},"parentId":"f3871c51-de56-436e-8001-062086af88f5","aspectNames":["cm:versionable","cm:auditable"],"createdAt":"2022-02-16T14:17:58.567+0000","isFolder":false,"modifiedByUser":{"id":"admin","displayName":"Administrator"},"name":"test.txt","id":"5d16aa61-2f8f-4744-afb9-d892a5566343","properties":{"cm:versionLabel":"1.0","cm:versionType":"MAJOR"}}}

Waited 10 seconds (to be sure the content is indexed) and performing the query directly in SOLR (my file included "quidditch" on the content):

http://127.0.0.1:8983/solr/alfresco/select?indent=on&q=TEXT:%22quidditch%22&wt=json

  "response":{"numFound":1,"start":0,"docs":[
      {
        "DBID":864,
        "id":"_DEFAULT_!8000000000000360"}]
  }

Do you have additional instructions on how to reproduce the issue?

Hyland Developer Evangelist