Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1499

Deleted entry is still searchable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.1.1, 4.0
    • 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())

      { manager.addEntryReIndexOperation(entry); }

      }

      Attachments

        Activity

          People

            djohnson David Johnson
            roller_hchang Henry Chang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: