<?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 Re: Lucene query wrong behaviuor in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273002#M226132</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;Have you any rules that run when the file is added, updated or removed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you add and remove this file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing that happens to the parent is the last modification time is updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can switch this off, set&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; system.enableTimestampPropagation=false&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this fix your issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2012 14:00:15 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2012-10-18T14:00:15Z</dc:date>
    <item>
      <title>Lucene query wrong behaviuor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/272999#M226129</link>
      <description>Hi all,I'm experiencing a strange issue on Alfresco Community 4.0.d about Lucene PATH queries.Say I have a node A (folder) that contains a node B (document): if I delete node B and after that I perform a Lucene PATH query using as path the path of node A, the system tells me that node A can't be fou</description>
      <pubDate>Wed, 17 Oct 2012 09:58:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/272999#M226129</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-10-17T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query wrong behaviuor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273000#M226130</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;This does sound odd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you describe in more detail exactly what you need to do to reproduce this from a clean repository and what you installed etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Who created everything, is this site/repository, exactly how did you run the search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you are using lucene (as the installer will give you SOLR) …. how did you confgure this ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 13:52:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273000#M226130</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-10-17T13:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query wrong behaviuor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273001#M226131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can confirm you that I'm using lucene, since in my alfresco-global.properties I set:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;### Solr/Lucene indexing ###&lt;BR /&gt;index.subsystem.name=lucene&lt;BR /&gt;#dir.keystore=${dir.root}/keystore&lt;BR /&gt;#solr.port.ssl=8443&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;SPAN&gt;I did not change any parameter in repository.properties, the repository come from a clean install.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can also provide you with the code I use to perform the query&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;luceneQueryPath1 = "PATH:\""+path1+"\"";&lt;BR /&gt;var nodoValido = true;&lt;BR /&gt;var luceneSearchSudo = function() {&lt;BR /&gt;&amp;nbsp; var adminRisultatiNodo = search.luceneSearch(luceneQueryPath1);&lt;BR /&gt;&amp;nbsp; if (adminRisultatiNodo.length != 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodoValido = false;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;and the content of variable luceneQueryPath1 taken from Alfresco debugger&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;PATH:"/app:company:home/cm:Uirnet/cm:Area_x0020_CRM/cm:_x0030_000/cm:_x0030_01/cm:_x0030_46/cm:CRM_AziendaA_0000001046/cm:Azienda/cm:_x0030_000/cm:_x0031_00"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;After performing an upload and then deleting the child node, if I run the above code I get from the debugger:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;adminRisultatiNodo.length = 0&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;It seems to happen when uploading and deleting the same file into the same space over and over again. From that point on the parent folder cannot be found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also managed to enable audit to take a picture of the situation, but I can't attach the file to the POST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 12:49:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273001#M226131</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-10-18T12:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query wrong behaviuor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273002#M226132</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;Have you any rules that run when the file is added, updated or removed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you add and remove this file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing that happens to the parent is the last modification time is updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can switch this off, set&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; system.enableTimestampPropagation=false&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this fix your issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 14:00:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273002#M226132</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-10-18T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query wrong behaviuor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273003#M226133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any rules running during the operation and I add/remmove files using webscripts code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the property as you told me but, unfortunately, it didn't solve my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The test I performed is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;I uploaded a file&lt;/LI&gt;&lt;LI&gt;I deleted it&lt;/LI&gt;&lt;LI&gt;I uploaded the file again&lt;/LI&gt;&lt;LI&gt;I deleted the file again&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Then when I try to upload the file for the third time, I cannot find the containg folder with a Lucene path query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 15:34:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273003#M226133</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-10-18T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query wrong behaviuor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273004#M226134</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;Can you add your code so we know what is done exactly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment I do not see why the folder would be reindexed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the parent a normal Folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you repeat the query dose it come back with the answer (to make sure it is not timing out somewhere …on permissions evaluations for example)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How many nodes does your query match and how many of those can the user executing the query see?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you run your query to find the folder before you do anything and after each operation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you confirim that the last modified timestamp for the parent has not moved on after you have run the test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My best guess is that timestamps are being propagated in the version you have and in transaction part of the index update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;has missed adding the parent for some reason.&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, 19 Oct 2012 09:14:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273004#M226134</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-10-19T09:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query wrong behaviuor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273005#M226135</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;BLOCKQUOTE class="jive-quote"&gt;Can you add your code so we know what is done exactly.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The upload code is quite long, I'm trying to build up a smaller version that performs the sequence of operations in order to reproduce the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will provide you the code as soon as I can. If you prefer to take a look to the whole code, tell me whether I have to insert it into the post between code tags or put on something like &lt;/SPAN&gt;&lt;A href="https://www.wetransfer.com/" rel="nofollow noopener noreferrer"&gt;https://www.wetransfer.com/&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is the parent a normal Folder?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The parent folder is a cm:folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you repeat the query dose it come back with the answer (to make sure it is not timing out somewhere …on permissions evaluations for example)&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The query always returns a result without any timeout&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How many nodes does your query match and how many of those can the user executing the query see?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The query must always find just one node (folder)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you run your query to find the folder before you do anything and after each operation?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The query is performed before file uploading to assert the presence of the folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you confirim that the last modified timestamp for the parent has not moved on after you have run the test.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I'm currently under a milestone release, I will tell you about this as soon as I can&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanls a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 13:57:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-wrong-behaviuor/m-p/273005#M226135</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-10-19T13:57:55Z</dc:date>
    </item>
  </channel>
</rss>

