Oracle WebCenter Portal elasticsearch Issue

New version of oracle webcenter portal 12.2.1.3.0 using Elasticsearch , and it is working , but the problem is elasticsearch did not search in portal pages content (text) then generate the web link for page which include that text, elasticsearch is searching in portal page as HTML file then generate the link for this file and view it as html tags (source code). can any one here help me and tell me what is the problem and how to resolve it?

I think you need to ask Oracle for that.
Unless you have control on how all that is working and you can change the behavior.

In which case you need to share an example as a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

1 Like

dadoonet thank you for your reply, but may you please tell me how to get "full recreation script"?

I don't know. I linked to an example of what we can understand on elasticsearch side.
If you don't know what I'm talking about then probably you need to ask Oracle.

Dear dadoonet the following is the portal_index (JSON page) :
{

{

}, { [
{
[

      ],
       [
        
      ],
    }
  },
  {
     [
       
      ], [
        
      ],
     
    }
  },
  {
    "_index" : "webcenter_portal_portals",
    "_type" : "pages",
    "_id" : "_oracle_webcenter_page_scopedMD_s7d8481cb_9029_44a5_8747_d9f7b9edb7d5_Page9d7a7996_3fbe_4ca0_a128_6f8f9418ea83_jspx",
    "_score" : 1.0,
    "_source" : {
      "wc_modifier" : "weblogic",
      "wc_scopeGuid" : "s7d8481cb_9029_44a5_8747_d9f7b9edb7d5",
      "wc_scopeName" : "FRA",
      "wc_tagWords" : "",
      "author" : [
        "weblogic"
      ],
      "lastmodified" : "2018-02-18T11:30:06.629Z",
      "wc_resourceId" : "/oracle/webcenter/page/scopedMD/s7d8481cb_9029_44a5_8747_d9f7b9edb7d5/Page9d7a7996_3fbe_4ca0_a128_6f8f9418ea83.jspx",
      "title" : "FRA - Map",
      "wcsecattr" : [
        "ApplicationRole#s7d8481cb_9029_44a5_8747_d9f7b9edb7d5#-#Moderator",
        "ApplicationRole#webcenter#-#defaultadministrator",
        "ApplicationRole#webcenter#-#Global-GroupSpaces-Public-User",
        "ApplicationRole#webcenter#-#defaultcrawl"
      ],
      "url" : "http://192.168.10.210:8888/webcenter/faces/oracle/webcenter/framework/service/view/jsf/pages/resourceExternal.jspx?scope=s7d8481cb_9029_44a5_8747_d9f7b9edb7d5&tableId=oracle.webcenter.page&id=%2Foracle%2Fwebcenter%2Fpage%2FscopedMD%2Fs7d8481cb_9029_44a5_8747_d9f7b9edb7d5%2FPage9d7a7996_3fbe_4ca0_a128_6f8f9418ea83.jspx&title=FRA+-+Map&",
      "wc_serviceId" : "oracle.webcenter.page"
    }
  },
  {
    {
       [
        
      ], [
        
      ],
      
    }
  },
  {
    {
     [
        
      ], [
       
      ],
      
    }
  },
  {
     {
      [
        
      ],
     [
        
      ],
      
    }
  },
  {
    {
      
    }
  },
  {
     [
        
      ],
       [
        
      ],
     
    }
  },
  {
    {
       [
       
      ], [
        
      ],
     
    }
  },
  {
    {
      
    }
  }
]

}
}

May you please tell me how to modify that index and add another text to it ???
Thank you for your help and your time.

  • notes : i removed many texts because of size limitation.

So documents are indexed as:

{
      "wc_modifier" : "weblogic",
      "wc_scopeGuid" : "s7d8481cb_9029_44a5_8747_d9f7b9edb7d5",
      "wc_scopeName" : "FRA",
      "wc_tagWords" : "",
      "author" : [
        "weblogic"
      ],
      "lastmodified" : "2018-02-18T11:30:06.629Z",
      "wc_resourceId" : "/oracle/webcenter/page/scopedMD/s7d8481cb_9029_44a5_8747_d9f7b9edb7d5/Page9d7a7996_3fbe_4ca0_a128_6f8f9418ea83.jspx",
      "title" : "FRA - Map",
      "wcsecattr" : [
        "ApplicationRole#s7d8481cb_9029_44a5_8747_d9f7b9edb7d5#-#Moderator",
        "ApplicationRole#webcenter#-#defaultadministrator",
        "ApplicationRole#webcenter#-#Global-GroupSpaces-Public-User",
        "ApplicationRole#webcenter#-#defaultcrawl"
      ],
      "url" : "http://192.168.10.210:8888/webcenter/faces/oracle/webcenter/framework/service/view/jsf/pages/resourceExternal.jspx?scope=s7d8481cb_9029_44a5_8747_d9f7b9edb7d5&tableId=oracle.webcenter.page&id=%2Foracle%2Fwebcenter%2Fpage%2FscopedMD%2Fs7d8481cb_9029_44a5_8747_d9f7b9edb7d5%2FPage9d7a7996_3fbe_4ca0_a128_6f8f9418ea83.jspx&title=FRA+-+Map&",
      "wc_serviceId" : "oracle.webcenter.page"
}

What is the problem then?

this file generated by oracle portal default crawler , I just need to add and change it, by adding more text.
by the way that text under mappings element.

Ok. Then it's a typical question to ask to the oracle webcenter portal community or support.

Thank you, I resolved this issue and update the file as I want. if any one face the same issue, just tell me and I will explain the solution in details.

That's great. Would be even better to share it here now as you memory is still fresh. People who ask the same thing in the future will be able to find your solution then.

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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.