r1 - 27 Aug 2004 - 15:09:04 - TedLeungYou are here: OSAF >  Journal Web  >  TWikiUsers > TedLeung > TedLeungNotes > TedLeung20040827

Notes

PyLucene and threads

In order for PyLucene to work in a thread other than the main thread it needs to be run under attachCurrentThread. The easiest way to do this is to subclass RepositoryThread?. See osaf/framework/tasks/TaskManager for an example (TaskThread)

LOBs and free text indexing

Attributes of type Text or Binary are not automatically index. In fact, there is no way to say that an attribute of Text/Binary/LOB type should be indexed. Instead, when you create the LOB, you need to set the indexed bit on it (there are also bits for compressed, etc). This allows the possiblity that developers will forget to set the indexed flag and data will mysteriously not be indexed. It doesn't seem like this is something that can be worked around at the parcel.xml level, so we're probably going to have to tackle this.

-- TedLeung - 27 Aug 2004

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.