cancel
Showing results for 
Search instead for 
Did you mean: 

Search not working with alfresco community edition

pankajt
Champ in-the-making
Champ in-the-making
Following is a sample folder structure in my alfresco repository

Main Repository
   |
   |——-FileOne.txt
   |—– Data Dictionary
   |        |————————— 1.txt
   |
   |—– User Homes
   |        |—————————–2.txt
   |
   |—– My Directory
            |—————————— MyFile.txt


When I execute "select cmis:name from cmis:document", it gives me back FileOne.txt, 1.txt and 2.txt but not MyFile.txt

The only difference I see here is that My Directory is created by me whereas the other two were present from the time of installation itself.

This may be related to alfresco configuration. I have not tested this against any other repository, so it might be specific to alfresco.

Any pointers on this will be helpful.

Thanks,
Pankaj
7 REPLIES 7

pankajt
Champ in-the-making
Champ in-the-making
Main Repository
   |
   |——-FileOne.txt
   |
   |—– Data Dictionary
   |            |————————— 1.txt
   |
   |—– User Homes
   |            |—————————–2.txt
   |
   |—– My Directory
   |              |—————————— MyFile.txt


Posting the diagram again for clarification. The MyFile.txt resides under the directory My Directory and is not being returned in the search results

andy
Champ on-the-rise
Champ on-the-rise
Hi

Please add:
1) the product version
2) how you created your test data - including who you logged in as
3) how you executed the query - including who you logged in as/client/API etc
4) the acls and owners of all related files and folders you have added.

Andy

pankajt
Champ in-the-making
Champ in-the-making
I have two machines where the search was failing in the community edition. I reinstalled the community edition in one of the machines and the search has started working.

Answers to your questions:
1. Version: 4.0.d
2. Logged in as the admin user (User which is created during the installation)
3. The test data is created manually with the same 'admin' user as well as through apache chemistry open cmis client again using the 'admin' user
4. The queries are executed using the 'admin' user and run in the CMIS browser. (http://url-address/alfresco/service/cmis/index.html)

You can close the thread for now but if it helps I did not change any permission settings in the repository but I did had some custom model defined in the directory C:\alfresco\tomcat\shared\classes\alfresco\extension which I was using for some time.

pankajt
Champ in-the-making
Champ in-the-making
Out of nowhere, the alfresco setup which was working earlier is not working now. When I fire a simple cmis:strict query in the node browser "select * from cmis:document", the query is failing with the following error
Search failed due to: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: missing://missing/missing(null)

Any pointers will be helpful

pankajt
Champ in-the-making
Champ in-the-making
Not sure but could be a indexing problem. After reinstallation the problem got resolved. Next time will try a full index and update the thread if that works.

-Pankaj

heiko_robert
Star Collaborator
Star Collaborator
Hi,
you may hit some of the actual 4.0.x restrictions in the Alfresco-SOLR indexing: If you change the document model in many cases the indexing stops working an you need to reindex the repository.
Unfortunatlely there is no easy end user sanity check for your index.

tak
Champ in-the-making
Champ in-the-making
Hi,

Could you let me know the actual issue # for 4.0.x restrictions?
I have faced a similar case that indexing did not work after I modified a document model and deploy it.
I would like to know on which version this issue is/will be fixed?

Tak