[
https://issues.apache.org/jira/browse/JSPWIKI-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206150#comment-17206150
]
FP commented on JSPWIKI-1131:
-----------------------------
These are the steps to setup the development snapshot:
* Build 43a15c85600d33054eec8fea8c7b622dd582d493 via `mvn clean package`
* Setup a fresh Debian 10 host.
* Copy the data directory from the existing installation (~ 21 GB of wiki
pages and attachments)
* Setup my build. There are no old classes or lucene indices lingering around.
Everything is setup afresh.
* Start tomcat
The lucene index is created from scratch as the log reports:
{code:java}
[JSPWiki Lucene Indexer] INFO org.apache.wiki.search.LuceneSearchProvider -
Starting Lucene reindexing, this can take a couple of minutes...
[...]
[JSPWiki Lucene Indexer] INFO org.apache.wiki.search.LuceneSearchProvider -
Full Lucene index finished in 101851 milliseconds{code}
I repeated the exact same steps as mentioned in my previous comment. The
behavior is identical:
* Words on new pages are found immediately.
* Words on existing pages are not recognized by the search. A restart of
tomcat does not find those new words either. The search only recognizes those
words after deleting the lucene indices and let JSPWiki rebuild them from
scratch.
During testing, I noticed the following messages/exceptions. I don't know if
those effect the search (but I suppose no, as I edited pages that are OK):
*
{code:java}
[main] INFO org.apache.wiki.parser.JSPWikiMarkupParser - Wiki : Foo - Failed to
insert plugin: Could not find plugin BubbleChartPlugin{code}
*
{code:java}
org.apache.wiki.api.exceptions.ProviderException: Illegal page name{code}
The "Illegal page name" page name exception points towards
[https://github.com/apache/jspwiki/blob/f47298624be7bfc277d12e12437d68cfbc793d0c/jspwiki-main/src/main/java/org/apache/wiki/pages/DefaultPageManager.java#L500].
Until now, I was unable to find the culprit.
> 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)