<?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 after moving a document. a opencmis query doesn't find it in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307438#M260568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is that if I move a document (cut and paste) on the Alfresco Explorer into other folder, when I try to look for it on opencmis (a session.query), it isn´t able to find it , but if I move again the document into the previous place (the place it was upload), it is able to find it. so the query is correct, but I wouuld like to know if I need to refresh something in order to find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;results = session.query("SELECT * FROM my:document as t join my:documentAspect as d on d.cmis:objectId = t.cmis:objectId where d.my:idDoc=xxxxx ", false);&lt;BR /&gt;….&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;why could this happen???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thaks so much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 13:07:25 GMT</pubDate>
    <dc:creator>iruizdeeguilaz</dc:creator>
    <dc:date>2014-03-04T13:07:25Z</dc:date>
    <item>
      <title>after moving a document. a opencmis query doesn't find it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307438#M260568</link>
      <description>Hello the problem is that if I move a document (cut and paste) on the Alfresco Explorer into other folder, when I try to look for it on opencmis (a session.query), it isn´t able to find it , but if I move again the document into the previous place (the place it was upload), it is able to find it. so</description>
      <pubDate>Tue, 04 Mar 2014 13:07:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307438#M260568</guid>
      <dc:creator>iruizdeeguilaz</dc:creator>
      <dc:date>2014-03-04T13:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: after moving a document. a opencmis query doesn't find it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307439#M260569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Where did you move the document to? I guess maybe you moved it out of cmis root folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No matter where you move to make sure it is still under company home folder. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 14:19:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307439#M260569</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-03-04T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: after moving a document. a opencmis query doesn't find it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307440#M260570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes it is under company home space always&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the main problem was that i did a migration to this path : companyhome/myproject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but after that I had to change to companyhome/companyname/myproject&amp;nbsp; So I created a space called companyname under company home and I moved the folder using Alfresco Explorer instead of migrating again with opencmis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in other example I uploaded a new document from opencmis code in companyhome/companyname/myproject/year/month/day (I could find this document by query) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I moved it to companyhome/companyname/myproject/year/month in order to see if it was the problem… and then I couldn't find it…. after a while I moved it again to companyhome/companyname/myproject/year/month/day and the queary worked again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I can´t see all documents migrated , they are a lot and I need&amp;nbsp; to know if it is possible maybe to refresh lucene or something like that. I don't understand why this happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in adittion to this if a look for the document by path or by id I cand find it&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; Document prueba = (Document) session.getObjectByPath("/companyname/myproject/2013/3/3/image.jpg");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println( prueba.getName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&amp;nbsp; prueba.getPropertyValue("my:idDocument"));&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but it I can´t find it using session.query where myproperty = '' after moving it&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have other question here, perhaps it is possible to look for a objtect instead by path by a property (it could solve my problem)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks so much&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 14:39:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307440#M260570</guid>
      <dc:creator>iruizdeeguilaz</dc:creator>
      <dc:date>2014-03-04T14:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: after moving a document. a opencmis query doesn't find it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307441#M260571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use session.getObject(CMIS_OBJECT_ID) to find the object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be that your index is corrupt or hasn't caught up yet, particularly if you did a big move.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 21:35:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307441#M260571</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-03-04T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: after moving a document. a opencmis query doesn't find it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307442#M260572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be that your index is corrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it was. I did a reindesex and right now I am be able to find it (At least a little query tests I have made)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have followed the ensuing steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to set index.recovery.mode=FULL in the alfresco-global properties, stop the Alfresco Repository, zap the index directory, and start the repo again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;probably when I was testing the possility of tenants and I changed a lot of things, even the custom model and so on. It became courrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thaks so much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 08:43:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/after-moving-a-document-a-opencmis-query-doesn-t-find-it/m-p/307442#M260572</guid>
      <dc:creator>iruizdeeguilaz</dc:creator>
      <dc:date>2014-03-05T08:43:19Z</dc:date>
    </item>
  </channel>
</rss>

