|Title|Search: search cannot find keywords from the latest changes
|Date|25-Sep-2005 03:36:35 EEST
|[Bug criticality]|MediumBug
|Browser version|Safari
|[Bug status]|ClosedBug
|[PageProvider] used|default
|Servlet Container|Tomcat 5
|Operating System|Mac OS X 10.4.2
|Java version|1.4

Search never includes the latest changes
    public void putPageText( WikiPage page, String content )
        throws ProviderException
        m_provider.putPageText( page, content ); 
        m_engine.getSearchManager().reindexPage( page );

    public void reindexPage( WikiPage page )
                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