How to debug solr exceptions/warnings for Alfresco (Part 3)

Some good to know stuff having followed debugging which I thought I’d share.

First of all, to find out the node ref of a node id do the following SQL:

  SELECT CONCAT(store.protocol,'://',store.identifier,'/',node.uuid), node.id, node.audit_creator, node.audit_created, node.audit_modifier, node.audit_modified,
       node.audit_accessed
  FROM alf_node node
  LEFT JOIN alf_store as store ON store.id=store_id
  WHERE node.id in ('4777883', '4777625');

Next just use the node browser or Alfresco Share to find your node and its info.

If you are having problem with a node and want to exclude it from the index, have a look at http://docs.alfresco.com/4.2/concepts/admin-indexes.html. There it is described how to exclude a node from the Solr index. Or just disable content indexing, or metadata indexing.

Just apply the aspect and set the properties accordingly on a node and it will be indexed according to the rules described on the page. In my case I had to deactivate content indexing for some failing nodes due to corrupt content (but correct metadata).

function disableContentIndexingFor(nodeRef) {
  var node = search.findNode(nodeRef);

  node.properties["cm:isContentIndexed"] = false;  //Disable content index on the node
  node.properties["cm:isIndexed"] = true; //Allow metadata index on the node

  node.save();
}

disableContentIndexingFor("workspace://SpacesStore/cafebabe-cafe-babe-cafe-babecafebabe");

How to debug solr exceptions/warnings for Alfresco (Part 1)
How to debug solr exceptions/warnings for Alfresco (Part 2)

This entry was posted in Uncategorized. Bookmark the permalink.

39 Responses to How to debug solr exceptions/warnings for Alfresco (Part 3)

  1. This is a very good weblog. Keep up all the function. I too love to weblog. This really is wonderful every person sharing opinions

  2. Really appreciate you sharing this post. Really Cool.

  3. I see that you simply are making use of WordPress on your blog, wordpress could be the best.~ a-~*

  4. pretty beneficial material, overall I feel this is worthy of a bookmark, thanks

  5. fake rolex says:

    This is getting a bit more subjective, but I much prefer the Zune Marketplace.

  6. This genuinely answered my challenge, thank you!

  7. Thanks for sharing, this is a fantastic article.Thanks Again. Really Great.

  8. Tattoo says:

    Im obliged for the article.Much thanks again. Keep writing.

  9. Thank you for every other great post. The place else may just anyone get that type of info in such a perfect way of writing? I ave a presentation next week, and I am at the look for such info.

  10. Very good blog article.Really thank you! Awesome.

  11. Tattoo says:

    You ave an extremely good layout for your blog i want it to use on my internet site also.

  12. This was to protect them from ghosts and demons. Peace,

  13. sex is pretty hot topic at the moment. I was just talking to my brother about the exact same issue the other day.

  14. EKDV-640 says:

    I really liked your post.Much thanks again. Really Great.

  15. Yeah bookmaking this wasn at a speculative decision great post!

  16. disease says:

    This blog is definitely entertaining additionally factual. I have picked up helluva helpful tips out of this amazing blog. I ad love to visit it again and again. Thanks!

  17. Tattoo says:

    My spouse and I stumbled over right here different site and believed I really should examine points out.

  18. start my own blog in the near future. Anyhow, should you have any recommendations or techniques for new blog owners please share.

  19. tech says:

    This website truly has all the information I wanted about this subject and didn at know who to ask.

  20. you have an excellent weblog right here! would you like to make some invite posts on my weblog?

  21. OMG카지노 says:

    I like reading through a post that will make people think. Also, thank you for permitting me to comment. https://www.omgqq.com

  22. This particular blog is no doubt educating and besides amusing. I have found a bunch of interesting things out of this blog. I ad love to go back again soon. Cheers!

  23. It as really a nice and useful piece of info. I am glad that you shared this helpful info with us. Please keep us informed like this. Thanks for sharing.

  24. gomovies says:

    I think you did an awesome job explaining it. Sure beats having to research it on my own. Thanks

  25. we like to honor lots of other world-wide-web web sites around the internet, even if they aren

  26. Thank you a million and please carry on the

  27. walops.com says:

    Thanks-a-mundo for the blog post.Really looking forward to read more. Much obliged.

  28. Im obliged for the article.Really looking forward to read more. Keep writing.

  29. photography says:

    Real fantastic information can be found on web blog. I am not merry but I do beguile The thing I am, by seeming otherwise. by William Shakespeare.

  30. shine900 says:

    Top Glove, Hartalega and Kossan say they’ve taken measures to prevent the exploitation of workers by recruiters. In recent years, all three companies have introduced “zero-cost recruitment” policies, meaning the agencies in the workers’ home countries are not allowed to charge them fees related to their employment — the companies cover all their costs.

  31. betting33 says:

    Hartalega workers are briefed about the company’s zero-cost recruitment policy before they leave home and are asked upon arrival if they’ve had to pay anything. The same question is asked three months into the job, the company said.

  32. syy577 says:

    A Nepali auditor, who wishes to stay anonymous for fear of reprisal, Business he had interviewed several workers hired by Top Glove through recruitment company Trust Nepal

  33. dok222 says:

    Six years later, he’s still working in the factory and dreams of going home but can’t afford to. “I work very hard every month, but my salary is still not enough to support my family, let alone pay for a return flight,” he said.

  34. ccclub700 says:

    Reasons could include being caught smoking, not meeting daily quotas, or failing to wear protective equipment, according to an auditor who requested to remain anonymous for fear of reprisals

  35. cacash9 says:

    The work itself is strenuous and dangerous, say some observers. Temperatures near the ovens used to heat the glove-shaped molds once they have been dipped into rubber can reach 60 degrees Celsius (140 Fahrenheit), according to several experts.

  36. arenda vps says:

    I think this is a real great blog post.Thanks Again. Really Great.

  37. Major thanks for the blog article.Much thanks again. Awesome.

  38. Merely wanna comment that you have a very decent web site , I like the design and style it really stands out.

  39. Twitter says:

    This is one awesome article post.Much thanks again. Want more.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>