[Chandler-dev] Re: Index ordering and case sensitivity

Andi Vajda vajda at osafoundation.org
Wed Nov 15 11:52:49 PST 2006


On Wed, 15 Nov 2006, Grant Baillie wrote:

>
> On 15 Nov, 2006, at 11:18, Andi Vajda wrote:
>
>> 
>> On Wed, 15 Nov 2006, Andi Vajda wrote:
>> 
>>> To rebuild an index, save its creation keywords with 
>>> index.getInitKeywords() and type with index.getIndexType(), remove the 
>>> index with removeIndex() and create the same index using the type and init 
>>> keywords saved with addIndex().
>> 
>> Correction: removeIndex() is going to cause all subIndexes to get lost. If 
>> you need a way to rebuild indexes, I need to add a proper API for this. Let 
>> me know if and when you need this.
>
> Hmmm... There's code in parcels/osaf/pim/calendar/TimeZone.py that rebuilds 
> floating event indexes when you toggle showing TimeZones. That uses 
> collection.reindexKeys(). Should it be using something else?

that one re-indexes the keys that need to be, not the entire index.

Andi..


More information about the chandler-dev mailing list