[Cosmo] iCalendar data queries
cyrus+lists.cosmo at daboo.name
Sat Nov 12 09:38:10 PST 2005
--On November 11, 2005 1:13:01 PM -0800 Brian Moseley
<bcm at osafoundation.org> wrote:
>> All of this would eliminate the jcr nodes for the iCal object model,
>> whilst still utilising jcr's own searching/query capability. i.e. we
>> would not have to build our own indexer etc.
>> The trade-off is that we would have to flatten each resource as it came
>> in - that should be a simple modification to ical4j outputter class to
>> do. Also, I'm not sure that this gives the most efficient way of
> sounds like a good compromise that can get us off the ground. nice
> creative thinking :)
OK, so this does not quite work due to the way lucene works. Basically
lucene is a general text indexer that treats each text blob as an
unstructured document and indexes each term in that document.
With the 'flat' iCal data model I proposed, it is not possible to search
for text in a specific property as the indexer will match text in any
property (i.e. any occurrence of the text in the entire iCal flat data).
The bottom line is that any indexer we use MUST provide indexing that is
keyed off property/parameter items.
I am going to propose another model for us to use in another message.
More information about the Cosmo