|Title|Search: search cannot find keywords from the latest changes
|Date|25-Sep-2005 03:36:35 EEST
|Version|2.2.33
|Submitter|24.6.49.104
|[Bug criticality]|MediumBug
|Browser version|Safari
|[Bug status]|ClosedBug
|[PageProvider] used|default
|Servlet Container|Tomcat 5
|Operating System|Mac OS X 10.4.2
|URL|
|Java version|1.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