Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
7 replies Latest Post - ‏2013-08-29T08:09:45Z by DragosDudau
SystemAdmin
SystemAdmin
2014 Posts
ACCEPTED ANSWER

Pinned topic Omnifind 9.1 search brings only links with "myportal"

‏2012-12-26T19:57:27Z |
Dears,

Im dealing with WebSphere Portal 7 with WCM, and I have omnifind 9.1 to configure.

Now, I used the seedlist of the "WebSphere Portal" and also the "Web Content Management", for both the crawler brings fewer documents than expected. However, when i test the search i notice the results links are all came with context "/wps/myportal". the portal is available for public users, so most of the portal pages security been set to "anonymous user", and the home page address is like "/wps/portal/home".
What is the best practice to configure the omnifind to bring all the available pages, so the search result will include the public links (of context "/wps/portal").

Thank You
Updated on 2013-02-18T03:12:12Z at 2013-02-18T03:12:12Z by jgtiojanco
  • SystemAdmin
    SystemAdmin
    2014 Posts
    ACCEPTED ANSWER

    Re: Omnifind 9.1 search brings only links with "myportal"

    ‏2013-02-12T09:26:58Z  in response to SystemAdmin
    Hello,

    Any answer, guys?
  • jgtiojanco
    jgtiojanco
    18 Posts
    ACCEPTED ANSWER

    Re: Omnifind 9.1 search brings only links with "myportal"

    ‏2013-02-14T09:17:19Z  in response to SystemAdmin
    I have a somewhat similar concern... the links we are obtaining from WCM lack '/wps/mypoc/...'. Whenever we click the search results from WCM, we get an error page. Adding the quoted string above fixes the link.

    The link begins with '?urile=wcm:path ...'

    We did not apply changes to the WCM crawler and it used to work before. Any idea what we should tweak?

    Thanks!
    • bfoyle
      bfoyle
      29 Posts
      ACCEPTED ANSWER

      Re: Omnifind 9.1 search brings only links with "myportal"

      ‏2013-02-14T18:20:41Z  in response to jgtiojanco
      @jgtiojanco If it was working before and just stopped working, were there any changes made on the WCM side like an new fixpack or anything? Can you share the versions of what you are working with on both sides?

      bf
  • bfoyle
    bfoyle
    29 Posts
    ACCEPTED ANSWER

    Re: Omnifind 9.1 search brings only links with "myportal"

    ‏2013-02-14T18:18:51Z  in response to SystemAdmin
    I'm not an expert in this area but I'll make some suggestions and see how far we get.

    First of, make sure that you are using the seedlist crawler and then select WCM 7 as the source. The WCM direct crawler was for an earlier version of WCM.

    Do you have any security enabled on the collection?
    Do you have the latest fixpacks of OEE?

    bf
    • jgtiojanco
      jgtiojanco
      18 Posts
      ACCEPTED ANSWER

      Re: Omnifind 9.1 search brings only links with "myportal"

      ‏2013-02-15T07:53:25Z  in response to bfoyle
      Hello bf,

      Yes, they applied some patches to WCM. I pointed out to the customer that a change seems to have been applied to their seedlist links. We're currently using IBM Content Analytics with Enterprise Search v3 and they're using WCM 7.

      Our crawler's a seedlist crawler. Security is enabled.

      I have a workaround in mind involving the alternate URL feature that would check if the URL is missing 'wps/mypoc' and add it if it is not there. But still, that's just a workaround.

      Would you know if there should be something in WCM that needs to be changed in order for it to work with ICA?

      Thanks!

      Jase
  • jgtiojanco
    jgtiojanco
    18 Posts
    ACCEPTED ANSWER

    Re: Omnifind 9.1 search brings only links with "myportal"

    ‏2013-02-18T03:12:12Z  in response to SystemAdmin
    Had a meeting with the specialists from the client side last Friday. They said that their seed list is working for WCM's own search application. They didn't change any settings and everything's default. Still, I find it weird that the href in <atom:link> is incomplete.

    As expected, they weren't too excited about my proposed workaround involving alternate URLs.

    Is it possible for the crawler to use the <atom:content src=...> instead of the +<atom:link>+?

    Thanks!

    Regards,
    Jase
  • DragosDudau
    DragosDudau
    2 Posts
    ACCEPTED ANSWER

    Re: Omnifind 9.1 search brings only links with "myportal"

    ‏2013-08-29T08:09:45Z  in response to SystemAdmin

    If you want to have in your link /portal, /connect and /myportal, /myconnect I suggest you to modify searchportlet.war\dojo\dojo\dojo.js

    Locate "_renderTitle: function" line and before "var uri=_141f.documentURI" add  the following line: "var str=document.location.href;var chlogon=str.search(/myportal/i); ". Then between "else{if(uri.toLowerCase().indexOf("notes://")==0){if(EDR.config.notes_link_target!="null"){_1426=EDR.config.notes_link_target;}}}}} " and "if(!(EDR.config.forceTitleLink&&EDR.config.forceTitleLink=="true")&&(!uri||uri==""))" add "if (chlogon>=0){uri=uri.replace("portal", "myportal");"

     

    And if you are not redirected with portal or myportal from the search field... then you'll have to copy portalSearchBar.jsp  and make portalSearchBar1.jsp , locate the line "String url = ESURLGenerator.generateUrlString("ibm.portal.OmniFindSearch", "ibm.portal.OmniFindSearch.called", "/portal", request, response); " and change /portal with /myportal and then modify your Default.jsp theme file in the section "<portal-logic:if loggedIn="yes" portletSolo="no"" find "<a href="/wps/omnifind/portalSearchBar.jsp" onclick="wptheme_TCLightbox.show(this.href); return false;">" and change portalSearchBar with portalSearchBar1