[
https://issues.apache.org/jira/browse/JSPWIKI-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17214569#comment-17214569
]
FP commented on JSPWIKI-1131:
-----------------------------
Hi [~juanpablo] ,
I built commit 1042544144954d9895ae8d2d2c49c0ca52ed47e7 and retested it with my
big repository and wikipages-de as built with the mentioned commit. The results
are identical in both setups. The steps are:
* Stop tomcat and purge lucene's index
* Start JSPWiki and wait until the index is generated
* Login
* Search for an existing word: found
* Edit any existing page and add a word to it (e.g. _kinship_)
* Search for _kinship_: not found
* Create a new page and add _kinship_ to it, save.
* Search for _kinship_ again: the only search result is the new page
* Stop tomcat and purge lucene's index
* Start JSPWiki and wait until the index is generated
* Login
* Search again for _kinship_: found on both pages
The timestamps and files in the index directory are updated with each relevant
step. The wikipages seem to be sufficient to trigger my issue.
> Lucene Index not updated on edits/new page
> ------------------------------------------
>
> Key: JSPWIKI-1131
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1131
> Project: JSPWiki
> Issue Type: Bug
> Components: Search
> Affects Versions: 2.11.0-M7
> Environment: * Debian 10
> * Tomcat 9: 9.0.31-1~deb10u2
> * OpenJDK-JRE 11: 11.0.7+10-3~deb10u1
> * JSPWiki 2.11.0-M7
> Reporter: FP
> Priority: Critical
> Fix For: 2.11.0-M8
>
> Attachments: exception.txt, illegal-page-name.txt
>
>
> It seems that the lucene search index is not updated when a user edits an
> existing page or creates a new page. In both cases, the page is not found
> when someone searches for it.
> Search works as expected when:
> * Tomcat is stopped
> * The files in the {{lucene}} directory are removed
> * Tomcat is started
> * Wait until the Lucene Indexer thread finishes reindexing
> The following exception occurs when a page is edited (full stack trace
> attached):
> {{java.io.NotSerializableException: org.apache.wiki.WikiContext}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)