API Portal Search Cache Returns Deleted Content
search cancel

API Portal Search Cache Returns Deleted Content

book

Article ID: 42825

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

Symptom:

Data that has been removed is still present in the API Portal UI.

Workaround:

Re-build the index as per the instructions AFTER deleting the "content" folder under "/sitebuilder/archive" folder in the CMS. Rebuilding the index should resolve the problem.

1) SSH to the VM as root user

2) Shutdown catalina (ensure the process is shutdown before proceeding ?ps aux | grep catalina?)

[[email protected] ~]# cd /opt/Deployments/lrs/server/bin
[[email protected] ~]# ./catalina.sh stop
[[email protected] ~]# ps aux | grep catalina

3) Navigate to the Lucene index directory

[[email protected] ~]# cd /opt/Deployments/lrs/repository/INDEX/
[[email protected] INDEX]# ll
total 8
drwxr-xr-x 3 root root 4096 Oct 24 10:50 HEAD
drwxr-xr-x 3 root root 4096 Oct 24 10:50 PUBLISHED

4) Delete the search index folders of HEAD and PUBLISHED

[[email protected] INDEX]# rm -fR HEAD/
[[email protected] INDEX]# rm -fR PUBLISHED/

5) Restart catalina and tail the catalina.out log file

[[email protected] ~]# cd /opt/Deployments/lrs/server/bin
[[email protected] ~]# ./catalina.sh start
[[email protected] ~]# tail -F ../logs/catalina.out

6) Wait for the index to finish. This will take several minutes to complete. It is important that you wait for the index build to complete before searching to ensure that the index is complete.

Environment

Release: "L7APIS99000-2.6-Layer 7-API Portal-Bundle 3 Portals
Component: 2.6