[Yanel-commits] rev 49926 - public/yanel/trunk/src/realms/yanel-website/content

memo at wyona.com memo at wyona.com
Thu May 27 11:22:47 CEST 2010


Author: memo
Date: 2010-05-27 11:22:47 +0200 (Thu, 27 May 2010)
New Revision: 49926

Modified:
   public/yanel/trunk/src/realms/yanel-website/content/858861d0-8592-11dd-ad8b-0800200c9a66
Log:
indexing details added

Modified: public/yanel/trunk/src/realms/yanel-website/content/858861d0-8592-11dd-ad8b-0800200c9a66
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/858861d0-8592-11dd-ad8b-0800200c9a66	2010-05-27 09:07:35 UTC (rev 49925)
+++ public/yanel/trunk/src/realms/yanel-website/content/858861d0-8592-11dd-ad8b-0800200c9a66	2010-05-27 09:22:47 UTC (rev 49926)
@@ -102,5 +102,14 @@
 &lt;/yanel:resource-config&gt;<br />
 </pre>
 </div>
+<h2>Implementation details of indexing</h2>
+<p>The fulltext index is written by the class org.wyona.yarep.impl.search.lucene.LuceneIndexer, which is called when the InputStream is closed.</p>
+<p>The actual sequence of indexing properties for a (virtual) file is:</p>
+<ul>
+<li>YourResource sets the properties in Yarep:<br />org.wyona.yarep.core.Node.setProperty(String, String) </li>
+<li>Yarep saves these properties in<br />org.wyona.yarep.impl.repo.vfs.VirtualFileSystemNode.saveProperties()</li>
+<li>by calling<br />org.wyona.yarep.impl.repo.vfs.VirtualFileSystemOutputStream.close()</li>
+</ul>
+<p>For this reason, it is very important that all OutputStreams are closed, even if the compiler won't warn you if you don't.</p>
 </body>
 </html>
\ No newline at end of file



More information about the Yanel-commits mailing list