roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <nore...@atlassian.com>
Subject [Roller-JIRA] Commented: (ROL-1499) Deleted entry is still searchable
Date Wed, 08 Aug 2007 03:36:24 GMT

    [ http://opensource.atlassian.com/projects/roller/browse/ROL-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_13981
] 

David Johnson commented on ROL-1499:
------------------------------------

Fixed in trunk for 4.0, now need to fix for 3.1.1

URL: http://svn.apache.org/viewvc?view=rev&rev=563733
Log: Ensure that entry is removed from search index when entry is removed

> Deleted entry is still searchable
> ---------------------------------
>
>                 Key: ROL-1499
>                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1499
>             Project: Roller
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 3.1
>         Environment: Roller version is 3.1
> APP. Server BEA 9.2
> Database oracle 9.2.4
> Java 1.5.0
> OS is Solaris 9/10
>            Reporter: Henry Chang
>            Assignee: David Johnson
>             Fix For: 3.1.1, 4.0
>
>
> Deleted entry is still searchable unless manually rebuild search index.
> Delete an entry calls WeblogEntryFormAction.remove() method. The source code shows the
author attempted to re-index but the deleted entry is still searchable after the deletion.
> The problem is in a private method WeblogEntryFormAction.reindexEntry(). The author commented
out the code which removes the deleted entry from index. The method is quoted below for your
reference.
>     /**
>      * Attempts to remove the Entry from the Lucene index and
>      * then re-index the Entry if it is Published.  If the Entry
>      * is being deleted then mark it published = false.
>      * @param entry
>      */
>     private void reindexEntry(Roller roller, WeblogEntryData entry)
>     throws RollerException {
>         IndexManager manager = roller.getIndexManager();
>  
>         // remove entry before (re)adding it, or in case it isn't Published
>         //manager.removeEntryIndexOperation(entry);
>  
>         // if published, index the entry
>         if (entry.isPublished()) {
>             manager.addEntryReIndexOperation(entry);
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message