cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 5.0.d + Solr4 . Cannot list tags/search by tag/ tags not indexed

mreyem
Champ in-the-making
Champ in-the-making
Hi, I've got a plain Alfresco 5.0.d installation with solr4. I can search my documents and everything looks fine, also solr4 monitor increments the document count as I add them to alfresco, so I guess is allright down there. But I can't use the Alfresco Tags feature, which is supposed to be the key point of this installation.

Here is what I saw:

If I upload a document in share I can then edit the tags and add a new one, let's say one named "test". I can see correctly the tag from the document prespective. But the tag is not added in the repository left menu (under the "Tags" section). I also can't find it as administrator in the Tag Manager section. And if I perform a search via node browser with 'TAG:test' I can't find any document. But if i browse through all the nodes with the node browser I can see that the node was created correctly. The only thing that doesn't work is the search, that unfortunately is the main point of having tags for me.

I also tried this code with the javascript console, just to be sure:


var store = "workspace://SpacesStore";

taggingService.createTag(store, "test");

var tags = taggingService.getTags(store);

logger.log(tags.length);

for (var index = 0; index < tags.length; index++) {
   logger.log(tags[index]);   
}


I get no errors, but the tags length is always 0 and no tag is found. Can someone please help? As I said it should be a key feature for me.

Thank you
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

I've just checked this myself on official 5.0.d release and SOLR4. I can't reproduce your issue - my custom tag can be used to query documents after SOLR has indexed the document (5-15s after modification). The tag list in document library (I used Repository view) is also updated after adding a new tag.

The fact that taggingService.getTags(store) returns an array of length 0 is an indication that the tag hasn't actually been created. The getTags operation does not rely on SOLR and primarily executes a direct query against the database via the NodeService. The only part of that operation that would use SOLR is the query for the classification root, i.e. the container for all tags. If that already can't be found, you have a major problem with your SOLR setup, because that root is created when Alfresco first starts up. You can check this query yourself using the node browser - simply query for PATH:"/cm:taggable"

Regards
Axel

mreyem
Champ in-the-making
Champ in-the-making
Hi Alex, thanks for the quick reply. It happened that I updated alfresco from version 5.0c to 5.0d but did not update the solr4 installation and this caused this strange behaviour. Now everything is allright! Thank you!