Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1
-
None
-
Roller version is 3.1
APP. Server BEA 9.2
Database oracle 9.2.4
Java 1.5.0
OS is Solaris 9/10
-
Firefox 2.0.0.5, IE 6.0
-
blog.usa.gov
-
Oracle 9.2.4
-
1.5.0
-
Low
-
Solaris 9/10
Description
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())
}