Nicolas Maisonneuve wrote:

> see also a different version of LuceneIndexTransformer
> index XML data and delete available
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107821889332237&w=2

Indexing XML data is not new. The current LuceneIndexTransformer does this already. 

The current version doesn't do deletion quite the same way, but it will over-write an 
existing record, which allows for "incremental update". This is almost the same as the 
deletion feature in the variant version, given that you can specify a 
<lucene:document> element with no content. It looks to me as if with the variant 
version you can either delete a record, or add it, but not update a record.

The big difference is that the variant version does not recognise documents by URI - a 
document does not necessarily have a unique key - it simply has a collection of 
fields. One or more of these fields may be a URI, but it may not. So it will allow you 
to add 2 records with the same URI, whereas the current version identifies each record 
(document) with a URI, and it automatically deletes the any record with a given URI 
before adding a new record with that URI.

However, the variant version does have some really good features (such as the "boost" 
factor) which are certainly worth having. 

I think it would be good to merge the two, actually!

Con

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to