How to hot update index? #4363
qintian-qe
started this conversation in
General
Replies: 1 comment 6 replies
-
I assume that "front-end can still perform indexing" means that the webapp can still perform search. It depends on how the index is deleted and what kind of index access the webapp uses. Usually the Lucene within the webapp will open the index via memory mapping. This means that even if the files are deleted, the app is still able to access them, at least on Unix. The recommended way to delete index data for a project is to use the REST API endpoint, see https://opengrok.docs.apiary.io/#reference/0/project-data-management. This should make sure that the objects governing the index data search within the webapp are updated. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After deleting the index corresponding to the project on the server, I also cleaned up the cache on the front-end and found that the front-end can still perform indexing. Where is the index file stored at this time? (The above question is raised because I have performed index parallel operations and need to notify the web side that the index file has been updated. Currently, I can only restart the web service to update the index. What should I do to notify the web side in real-time?)
Beta Was this translation helpful? Give feedback.
All reactions