<?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 Lucene Indexing Problem using WebScripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169750#M123107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're running into a frustrating indexing issue that I'm trying to solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a space named Company Home/Additions. Users with write permission can create documents in there. Simple, and works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the background, I have a scheduled task that runs a WebScript that checks for new documents in Company Home/Additions every minute. If it sees a new document in there, it simply moves it to a different space that the person who created the document doesn't have write access to. Since the script runs in the background as the Admin user, this all works well. Except…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quite often, the Lucene indexes are getting out of sync with the repository. What I see happening is that the Lucene search that the script uses to look for new documents in the Additions space finds documents that are no longer there. Then when the script tries to move the document to a different space, it throws an error saying the document doesn't exist. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's interesting is that if I go into the node browser and do a Lucene search, the problem document shows up as being in the Additions folder. But if I descend through the child nodes from Company Home to Additions, the document does not show up in there.&amp;nbsp; And, if I browse to the folder that the script initially tried to move the document to, it shows up there. This is how I determined that the Lucene index is being corrupted. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I have found to fix this is to do a full Lucene index rebuild. But this is not practical because it may take several hours to do that and we can't afford that system downtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I discovered this problem initially through WebScripts, I have recoded the process using the Foundation Services and have run into the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have insight into what might be causing this problem? Has anyone run into this situation before? I'd really appreciate hearing from anyone if they have. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 19:54:25 GMT</pubDate>
    <dc:creator>kumbach</dc:creator>
    <dc:date>2008-05-16T19:54:25Z</dc:date>
    <item>
      <title>Lucene Indexing Problem using WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169750#M123107</link>
      <description>We're running into a frustrating indexing issue that I'm trying to solve.I have a space named Company Home/Additions. Users with write permission can create documents in there. Simple, and works well.In the background, I have a scheduled task that runs a WebScript that checks for new documents in Co</description>
      <pubDate>Fri, 16 May 2008 19:54:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169750#M123107</guid>
      <dc:creator>kumbach</dc:creator>
      <dc:date>2008-05-16T19:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Indexing Problem using WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169751#M123108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Note that indexing is asynchronous in some cases, so your code needs to gracefully handle the case where a search result is no longer in the original folder.&amp;nbsp; That said, this should be a rare occurrence, so it sounds like there's something else going on here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which Alfresco version and edition (Enterprise / Community) are you seeing this behaviour with?&amp;nbsp; Is the installation a cluster or a single server installation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 May 2008 00:08:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169751#M123108</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-05-18T00:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Indexing Problem using WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169752#M123109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Which Alfresco version and edition (Enterprise / Community) are you seeing this behaviour with?&amp;nbsp; Is the installation a cluster or a single server installation?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;We're running 2.1.1 Enterprise on a single server installation (Sun Solaris).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 15:29:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169752#M123109</guid>
      <dc:creator>kumbach</dc:creator>
      <dc:date>2008-05-21T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Indexing Problem using WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169753#M123110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the Actions Tutorial from Jeff Potts, he notes a potential explanation of why this happens.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See page 6 in &lt;/SPAN&gt;&lt;A href="http://www.ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf" rel="nofollow noopener noreferrer"&gt;http://www.ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 17:09:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169753#M123110</guid>
      <dc:creator>ebell</dc:creator>
      <dc:date>2008-06-05T17:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Indexing Problem using WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169754#M123111</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 sounds like a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have reproducable test case can you raise the bug and attach the code or floow this up via support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you storing your index on local disk?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible there is more than one instance of Alfresco running with the same configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any additional information in the log files?&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, 08 Aug 2008 13:44:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169754#M123111</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2008-08-08T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Indexing Problem using WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169755#M123112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you have reproducable test case can you raise the bug and attach the code or floow this up via support.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I'll work on that if the test mentioned below fails. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you storing your index on local disk?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible there is more than one instance of Alfresco running with the same configuration?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Don't think so. We have two instances running, but they are configured to be independent servers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there any additional information in the log files?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Nothing that I found useful. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've recently upgraded from 2.1.1 to 2.2.0 and did a brief multi-user test and couldn't reproduce the problem. It was easily reproducible on 2.1.1.&amp;nbsp; We're doing a larger multi-user test soon and that will flush out the problem if it's still in there…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 17:40:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-indexing-problem-using-webscripts/m-p/169755#M123112</guid>
      <dc:creator>kumbach</dc:creator>
      <dc:date>2008-08-11T17:40:18Z</dc:date>
    </item>
  </channel>
</rss>

