Oracle WebCenter Portal elasticsearch Issue

ok first this issue should be resolved by Oracle , any way the solution is update oracle portal pages index by adding the pages contents to that index file, so first you need to show the index structure by ruining this script :

curl -XGET 'http://localhost:9200/webcenter_portal_portals/_search?pretty=true'

after that you need to update every page in that index by its content, to do that you must know every page id for example the home page id is : "_oracle_webcenter_page_scopedMD_s7d8481cb_9029_44a5_8747_d9f7b9edb7d5_Page9d7a7996_3fbe_4ca0_a128_6f8f9418ea83_jspx"
so if you need to update that id you need to run the following script :

curl -XPUT 'http://localhost:9200/webcenter_portal_portals/pages/_oracle_webcenter_page_scopedMD_s7d8481cb_9029_44a5_8747_d9f7b9edb7d5_Paged9df150d_052e_4d13_81b1_06500860fee1_jspx?pretty' -d '{
......." add your data here"

}'**

do not change the file structure you can update it as you want but do not change the file structure.