<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Changing the name of a category in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244255#M197385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having problems changing the name of an existent category named "Compliance". This category contains nodes and other sub categories associated to it. I could make a webscript that changed the name of this category from "Compliance" to "sox". The problem is that in other webscripts I was using a Lucene search to get the nodes inside this category, so I thought that just changing the part "cm:Compliance" to "cm:sox" in the Lucene query would be enough to keep this search webscript working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, that was not the case, because the name of the category now seems to be both the old one and the new one. I mean, if I execute something like someNode.childByNamePath("sox") I get the correct node, but if I execute a Lucene query using the path of this node (e.g. +PATH:"/cm:generalclassifiable/cm:finance-hub/cm:sox") I get an empty array, BUT if I execute a Lucene search using the old name I get the correct node! (e.g. +PATH:"/cm:generalclassifiable/cm:finance-hub/cm:Compliance"). This is really weird since the "Compliance" node that I get using Lucene is the same node that I get using #childByNamePath("sox"). And if I read its 'name' property it returns "sox".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's put an example…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see in&amp;nbsp; this picture, I'm using a query that returns the nodes inside some subfolder of the 'Compliance' category:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://img261.imageshack.us/i/ex1u.jpg/" rel="nofollow noopener noreferrer"&gt;[img]http://img261.imageshack.us/img261/8827/ex1u.th.jpg[/img]&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this second picture I'm executing the same query but using 'sox':&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://img512.imageshack.us/i/ex2.jpg/" rel="nofollow noopener noreferrer"&gt;[img]http://img512.imageshack.us/img512/1276/ex2.th.jpg[/img]&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And in this third picture what I try to show you is how the same node has both the old name and the new one!&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://img341.imageshack.us/i/ex3.jpg/" rel="nofollow noopener noreferrer"&gt;[img]http://img341.imageshack.us/img341/1879/ex3.th.jpg[/img]&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need some help on this, what should I do in order to make the new name ("sox") the only one name? I mean, what should I do in order to make the Lucene search return the correct nodes when I use "sox" in the query?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2009 20:54:30 GMT</pubDate>
    <dc:creator>damiar</dc:creator>
    <dc:date>2009-06-25T20:54:30Z</dc:date>
    <item>
      <title>Changing the name of a category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244255#M197385</link>
      <description>Hey all,I'm having problems changing the name of an existent category named "Compliance". This category contains nodes and other sub categories associated to it. I could make a webscript that changed the name of this category from "Compliance" to "sox". The problem is that in other webscripts I was</description>
      <pubDate>Thu, 25 Jun 2009 20:54:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244255#M197385</guid>
      <dc:creator>damiar</dc:creator>
      <dc:date>2009-06-25T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the name of a category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244256#M197386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH uses the localName in the child association, not the cm:name property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You would also have to change the association.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 12:30:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244256#M197386</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2009-06-26T12:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the name of a category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244257#M197387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;PATH uses the localName in the child association, not the cm:name property.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't know that, how can I work around this? Or how can I solve it? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You would also have to change the association.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Sorry, but I don't get the point. Could you please explain what you mean?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 13:03:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244257#M197387</guid>
      <dc:creator>damiar</dc:creator>
      <dc:date>2009-06-26T13:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the name of a category</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244258#M197388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, any idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 14:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changing-the-name-of-a-category/m-p/244258#M197388</guid>
      <dc:creator>damiar</dc:creator>
      <dc:date>2009-06-30T14:01:58Z</dc:date>
    </item>
  </channel>
</rss>

