Hi,

fields are removed from search index when they are marked for deletion.
The method in which things occur is :

ContentField.markLanguageForDeletion (JahiaUser user,
                                         String languageCode,
                                         StateModificationContext
stateModificationContext){
    ...
            // update the search index
            ServicesRegistry.getInstance ().getJahiaSearchService ()
                    .removeFieldFromSearchEngine (this.getSiteID (),
this.getID (),

ContentObjectEntryState.WORKFLOW_STATE_START_STAGING, languageCode);
}

Regards,
Khue Nguyen


----- Original Message ----- 
From: "Mokrinsky Alexey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 27, 2004 9:39 AM
Subject: Field&Container deletion from search index


>
> Hi!
> Could you give me a hint of how&when the Jahia Fields are removed from the
Lucene search index.
> I have looked through the code and found empty delete() methods for
JahiaField's. At the same time save() methods call JahiaSearchService for
re-indexing them or adding to the index.
>
> What happens with the search index when the field is deleted?
>
> I try to create an index on Jahia containers and I need a possibility to
add/update container index, that's why I look for an example in Jahia Fields
indexing mechanism.
>
> Sincerely
> Alex
> __________
> www.newmail.ru -- Новая Почта: все по-новому.


Reply via email to