[ https://issues.apache.org/jira/browse/JSPWIKI-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209511#comment-17209511 ]
FP commented on JSPWIKI-1131: ----------------------------- Hi [~juanpablo] , thanks a lot for your patience, I really appreciate it! I used luke to inspect the lucene index and I still see the odd behavior regarding existing/new pages. Here are the steps I took: * Recorded the timestamp of the lucene directory. * Edited a page that has a single sentence in it. No ACL rules or any markup. There, I added the word 'kinship'. * Recorded the timestamp of the lucene directory and compared them with the previous timestamps. They changed and new files were added. * Opened the index in luke (ro) and searched for 'contents:kinship' - No matches in luke (nor jspwiki search). (number of documents: 13424; number of terms: 229559) * Recorded the timestamp of the lucene directory * Created a new page `TestLucene9` and added the word 'kinship'. * Compared the timestamps again; they changed once again. * Opened the index in luke (ro) and searched for 'contents:kinship' - 1 match on the page 'TestLucene9'. Same results in jspwiki search. (number of documents: 13425; number of terms: 229562). The debug log entries report success for index updating: "Done updating Lucene index for page '$page'." Just to make sure that 'kinship' is a word that gets picked up by lucene: * Stop tomcat * Remove the lucene directory * Start tomcat and waited until the lucene index was rebuilt * Opened the index in luke (ro) and searched for 'contents:kinship' - 2 matches on the pages 'TestLucene9' the existing one. Same results in jspwiki search. (number of documents: 13425; number of terms: 229516). > 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 > Attachments: exception.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)