Andreas Hartmann wrote:
> Josias Thöny wrote:
>> On Thu, 2006-07-27 at 00:49 +0200, Andreas Hartmann
wrote:
>>> Andreas Hartmann wrote:
>>>
>>> [...]
>>>
>>> > To be Decided
>>> > =============
>>> >
>>> > - introduce UUIDs?
>>> > - observation support (indexing of
documents)?
>>>
>>> I added a basic observation mechanism and a
test case.
>>
>> Thanks a lot for this cool feature!
>>
>>> Feel free to add more details to the test case.
>>>
>>> The listeners are notified when a transaction
is committed.
>>> I'd suggest that we try to use this for
indexing documents.
>>
>> One question: is it possible to add a listener
which is not specific to
>> a certain document, but listens to changes in all
documents?
>> This might be useful for the lucene module.
>>
>> The problem is that the nodeChanged() method in the
ObservationManager
>> only can translate from a node to a document if a
listener was added
>> earlier for that specific document.
>
> It's not so easy to solve that, because we would have
to derive the
> document from the node. I see two approaches:
>
> - access nodes only via documents, and the document
registeres itself
> as a listener to the node
>
> - try to resolve the document from the node source URI
Now the observation manager iterates over all documents in
the node's
area. This is not fast, but it works. At least it doesn't
depend on the
DocumentIdToPathMapper.
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache
Lenya
http://www.wyona.com
http://lenya.apache.org
andreas.hartmann wyona.com andreas apache.org
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe lenya.apache.org
For additional commands, e-mail: dev-help lenya.apache.org
|