<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Damn, this is a tricky one.<br>
How about a hacky solution: the file watch service does not update the<br>
config but writes a log of moved and watched folders.<br>
This log can be read by strigi after or before updating the index and<br>
then it can update its config itself without triggering a re-index.<br>
<br></blockquote><div><br>I was thinking somewhat the same thing except that I&#39;ve added variable &quot;restart&quot; to the nepomukstrigiconfig. <br><br>The patch works perfectly apart from one thing. In the IndexWriter::slotConfigChanged, I need to set the &quot;restart&quot; variable in the strigiconfig to true, if it is false. How do I do that without triggering the slotConfigChaged function ? I tried disconnected the slot and then later reconnecting it, but it didn&#39;t work! :-(<br>
<br>I&#39;ve modified the patch that if a folder who&#39;s parent is being watch is moved to a non-indexed location. It gets added to the indexed folders list. A slight problem that arises (which we can do nothing about unless inotify improves) is if the folder is moved to a non-watched location. Then the EvenMoveTo event doesn&#39;t occur, and we can&#39;t update its location in the strigi config or update its metadata.<br>
<br>Is what I&#39;m doing with the Regex obvious in FileWatch::handleStrigiIndexedFolder or should I add comments to explain?<br><br>- Vishesh Handa<br></div></div>