[
https://issues.apache.org/jira/browse/JSPWIKI-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669169#action_12669169
]
Stefan Bohn commented on JSPWIKI-477:
-------------------------------------
I looked into the code and found:
Class
com.ecyrd.jspwiki.content.PageRenamer:
method
public String renamePage( ...)
line 142:
engine.getPageManager().putPageText( toPage, engine.getPureText( toPage ) );
the comment of the method putPageText says:
* Puts the page text into the repository. Note that this method does NOT update
* JSPWiki internal data structures, and therefore you should always use
WikiEngine.saveText()
I think, only saveText does the update of the lucene index.
Stefan
> Renamed pages are no longer in the Lucene index
> -----------------------------------------------
>
> Key: JSPWIKI-477
> URL: https://issues.apache.org/jira/browse/JSPWIKI-477
> Project: JSPWiki
> Issue Type: Bug
> Affects Versions: 2.8.1
> Environment: Red Hat Linux, Windows Vista
> Reporter: Stefan Bohn
> Fix For: 2.8.2
>
>
> When renaming a page, the page is deleted of the search index and no new
> entry is made.
> That means, after renaming a page, the page could no longer be found by the
> search engine.
> And if the page is renamed back to the former name, it cannot be found.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.