TitleSearch: search cannot find keywords from the latest changes
Date25-Sep-2005 03:36:35 EEST
Version2.2.33
Submitter24.6.49.104
Bug criticalityMediumBug
Browser versionSafari
Bug statusClosedBug
PageProvider useddefault
Servlet ContainerTomcat 5
Operating SystemMac OS X 10.4.2
URL
Java version1.4

Search never includes the latest changes

PageManager.java
    public void putPageText( WikiPage page, String content )
        throws ProviderException
    {...
        m_provider.putPageText( page, content ); 
        m_engine.getSearchManager().reindexPage( page );
    }

LuceneSearchProvider.java
    public void reindexPage( WikiPage page )
    {....
            else
            {
                text = m_engine.getPureText( page );

// Still getting the "old" version of page here!! Looks like the "latest version" getPureText uses hasn't been updated.

In other words, the content just put in is never reindexed; instead the version just before "save" is reindexed. The result is that search never "sees" the latest changes.


A rather old one here, just tested on 2.4.100, and I do get a proper hit when searching for a unique string in a just saved page, even after saving newer versions. Closing the bug

--HarryMetske

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 24-Mar-2007 15:55 by HarryMetske