Problem in retrieving search result

Hi Experts,
I wrote Java Application for Search Using Index Management APIs.
I am not getting any result.
Just look at my code
<b>i have taken some Variable String x="" to test my code</b>
IIndexService indexService =
      (IIndexService)ResourceFactory.getInstance().getServiceFactory().getService("IndexmanagementService");
      <b> x=x+ "1"+ indexService.getID();</b>
       IFederatedSearch federatedSearch =
  (IFederatedSearch)indexService.getObjectInstance("federatedSearchInstance");
//  get list of all active indexes
//alternatively use the indexService to get indexes by index ID and add them to a list
      List listuser=indexService.getActiveIndexes();
      <b>x=x+ "  2  " + listuser.size();</b>
//  build IQueryEntryList
      SearchQueryListBuilder sqb = new SearchQueryListBuilder();
  sqb.setSearchTerm(query);
  IQueryEntryList qel = sqb.buildSearchQueryList(); 
  <b> x=x+ "  3  " + qel.size();</b>     
//search
  ISearchSession  session = federatedSearch.searchWithSession(qel, listuser,resourseContext);
      <b> x= x + "  4  " + session.getTotalNumberResultKeys();</b>   
      //get the Results
  ISearchResultList results = session.getSearchResults(1,session.getTotalNumberResultKeys());
   ISearchResultListIterator iter = results.listIterator();
      <b> x= x " 5  " results.size();</b> 
           while (iter.hasNext())
         ISearchResult result = iter.next();
     IResource resource = result.getResource();
       IURLGeneratorService url =
      (IURLGeneratorService)ResourceFactory.getInstance     ().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
        uri=uri + url.getResourcePageUri(PathKey.CONTENT_ACCESS_PATH,resource.getAccessRID(),null).toString();
          <b> x=x+"  6  ";</b>     
          <b> x=x+ "  7  "+uri.length();</b>}
return x;
The output what i am getting is....
For this line <b> session.getTotalNumberResultKeys(); </b> i am getting output as 1 (one).
Means there is one result.
I am retrieving the results and storing it in 'results' list object
like this
ISearchResultList results = session.getSearchResults(1,session.getTotalNumberResultKeys());
When i say results.size() i am getting 0 as output.
What is this strange behaviour....?
Total results are 1(one)
When i try to retrieve them it says 0(zero) results.
When i perform normal search in protal there also i am getting only one result(when i search * as a search query).
the same i am doing it here.But  i am not able to retrieve the result.
To test this application , i am converting this java Class into Webservice and deploying it in searver.
The reason why i am converting it into webservice is , it will be used other portal i.e Sharepoint Portal.(They will call this webservice in their code)
Why is it happening so.
Any one has ideas , where it is going wrong.
Regards
Bala

HI Udit,
Yes i got the answer to it.
In my case the prblem was with the user credentilas.
When i run the same application from WebDynpro, it was working fine, meanse result list and result keys was same.
But when i run it as java application, i had the problem which you had.
So what i did is, I have checked which user it is taking in WebDynpro and which user it is taking in my java Application. Surprisingly it was different.
So tried with the same user, which it is taking in WebDynpro.
generally by default it takes <b>Guest</b>  user in WebDynpro.
So first try this application from webdynpro, if it works fine there.
Take the same user name and pass it from your java application.
It is the problem with user name only.
any way i am sending you my code , have look at it.
public class SearchJavaClass {
     String uri = "";
     //LinkedList list1 = new LinkedList();
     //public String Go(String query) {
     public List Go(String query) {
          String var =null;
          List SearchURL= new ArrayList();
          int i=0;
          //x=x+"i am in Go";
//          com.sap.security.api.IUser nwUser =
//               UMFactory.getAuthenticator().getLoggedInUser();
          com.sap.security.api.IUser nwUser = null;
          try {
               //com.sap.security.api.IUser nwUser1 = UMFactory.getUserFactory().getUser("Guest");
               //x = x + "nwUser1: "+nwUser1.getName();
               nwUser = UMFactory.getUserFactory().getUserByLogonID("Guest");
          } catch (UMException e1) {
               // TODO Auto-generated catch block
               e1.printStackTrace();
          try {
               // Bala start
               com.sapportals.portal.security.usermanagement.IUser ep5User =
                    WPUMFactory.getUserFactory().getEP5User(nwUser);
               ResourceContext resourseContext = new ResourceContext(ep5User);
               IIndexService indexService =
                    (IIndexService) ResourceFactory
                         .getInstance()
                         .getServiceFactory()
                         .getService(
                         "IndexmanagementService");
               IFederatedSearch federatedSearch =
                    (IFederatedSearch) indexService.getObjectInstance(
                         "federatedSearchInstance");
               List listuser = indexService.getActiveIndexes();
               SearchQueryListBuilder sqb = new SearchQueryListBuilder();
               sqb.setSearchTerm(query);
               IQueryEntryList qel = sqb.buildSearchQueryList();
               ISearchSession session =
                    federatedSearch.searchWithSession(
                         qel,
                         listuser,
                         resourseContext);
               ISearchResultList results =
                    session.getSearchResults(1, session.getTotalNumberResultKeys());
               ISearchResultListIterator iter = results.listIterator();
               //String uri = "";
               //ArrayList al= new ArrayList();
               //al.add(uri);
                    //var="";     
               while (iter.hasNext()) {
                    var ="";
               //     SearchVO searchvo = new SearchVO();
                    ISearchResult result = iter.next();
                    IResource resource = result.getResource();
                    IURLGeneratorService url =
                         (IURLGeneratorService) ResourceFactory
                              .getInstance()
                              .getServiceFactory()
                              .getService(IServiceTypesConst.URLGENERATOR_SERVICE);
                    uri =
                         url
                              .getResourcePageUri(
                                   PathKey.CONTENT_ACCESS_PATH,
                                    resource.getAccessRID(),
                                   null)
                               .toString();
                    com.sapportals.wcm.util.uri.IUriReference uri9=url.getResourcePageUri(PathKey.DETAILS_PAGE, resource.getAccessRID(),null);
                    //@@@@@@@@@com.sapportals.wcm.util.uri.IUriReference uri99 =uri9.appendPath(uri);                    
                    IHierarchicalUri uri7  = url.createAbsoluteUri(uri9);
                       var = uri7.toString();
                       //searchvo.setIHierarchicalUri(uri7);
//                       SearchURL.add(i,uri7);
                    SearchURL.add(i,var);
                    var="";
                       i++;
//                     var = var"   "uri7;
          // Bala end     
          } catch (ResourceException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (UserManagementException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (WcmException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (Exception e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } finally {
//               if(SearchURL.isEmpty())
//               return SearchURL ;//+ " No matches have been found";
//               else
//               //return var;
               return SearchURL;
     public static void main(String[] args) {
          SearchJavaClass obj = new SearchJavaClass();
          obj.Go(" Search Term");
Regards
Bala

Similar Messages

  • Problem when retrieve the result search in e-recruiting

    Hello All
    There is something curious when I try to retrieve the result of a search in e-recruiting. For example, when I try to create a requisition and I have to find the Hiring Manager, the result search is empty.
    The funny thing is if I loggin in English into the portal, the searches work fine. (I always have to loggin in Spanish).
    Some one know why this occurs
    Thank a lot
    Kind Regards

    Hello,
    Candidates entered through the Manual Application Management are blocked from search ecause they have not read and confirmed the data privacy statement for the company i.e. HRP5102:PRIVACY_STATUS. What you can do is notify the candidate that an application was created and send them the username and explain that they can get a password then update their profile and release so that they can appear in search.
    Regards,

  • Problem with OVS search result table..pls hlp

    Hi friends,
    I have crated  an OVS search help. .and its working fine when i hit F4.
    but when i hit search button.. the result table is showing more number of rows(blank), though the result has just 2 records returned.
    there are many no of blank rows. i wnat to get rid of this.
    i also tried to give the default no of rows in my componet (OVS), layout table.
    but still its not decreasing.
    can someone help me howto solve this.
    Niraja

    Hi Niraja,
    When you implement event handler for OVS search, you must have seen the code that gets automatically generated when you assign OVS event to that event handler. i.e.
    case ovs_callback_object->phase_indicator.
      THE FIRST PHASE WHICH SET CONFIG PARAMETERS
    when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
        in this phase you have the possibility to define the texts,
        if you do not want to use the defaults (DDIC-texts).....
    and so on.......
    so here inside co_phase_0 you can set the requried data by calling this method:
    ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title = lv_window_title
                    table_header = lv_table_header
                    col_count    = 2
                   row_count    = 20 ).
    Here I have hard coded no. of rows to 20 you can just set it to variable which may be holding your rowcount.
    I hope this will help you.
    Regards,
    Neha Modi

  • Yahoo search results problem

    We have two BM servers here. Older one Netware 6 sp5 w/ BM 3.7 sp3 that works well. A replacement that I have had up but not currently using much Netware 6.5 SP8 w/ BM 3.8 sp5. The latter one has a problem with Yahoo search results. If I point a workstation to the older NW6 BM it works fine in Bing, Google & Yahoo. If I point it to the NW6.5 BM then it will work fine in Bing and Google but in Yahoo it will return the results but when you click on any link there I get this message:
    Yahoo!
    Yahoo! - Help
    The requested URL was not found on this server.
    Please check the URL for proper spelling and capitalization. If you're having trouble locating a destination on Yahoo!, try visiting the Yahoo! home page or look through a list of Yahoo!'s online services. Also, you may find what you're looking for if you try searching below.
    Any ideas? I have no access rules enforced. Anything that might be of help would be greatly appreciated.....Thank you!

    I think this probably should be moved to the proxy portion of the forum - I am going to close this and start a new thread there. Sorry.....

  • Search result Page throw Error for anonymous User

    We have claim base WebApplication in SharePoint 2013. Every thing is working fine and user can login site without any problem. Only search result page not working..its given "Sorry, something went wrong "
    From ULS Log I found below exception
    CoreResultsWebPart::OnInit: Exception initializing: System.InvalidOperationException: The security token request cannot be completed.    
     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForServiceContext(Uri contextUri)    
     at Microsoft.SharePoint.SPChannelFactoryOperations.InternalCreateChannelActingAsLoggedOnUser[TChannel](ChannelFactory`1 factory, EndpointAddress address, Uri via)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.GetChannel(Uri address, Int32 timeoutInMilliseconds)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall)    
     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, WebServiceBackedOperation`1 webServiceCall)    
     at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.Refresh(IEnumerable`1 sharedScopes)    
     at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.EnsureFresh()    
     at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.TryGetScope(Int32 id, ScopeInformation& scope)    
     at Microsoft.Office.Server.Search.Query.ScopeCache.TryGetScope(Guid siteGuid, Int32 id, ScopeInformation& scope)    
     at Microsoft.Office.Server.Search.WebControls.SearchCommon.GetScopeNameByScopeID(Guid siteGuid, Int32 scopeID)    
     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()    
     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
    We are using Arabic Language Pack SharePoint 2013 on Windows server 2012 with SQL Server 2012.
     anonymous access already given form Central Admin and Sitecollection level 
    Quick response will be highly Appreciated.

    Its need to be set  impersonate="true"
    <authentication mode="Forms">
        </authentication>
        <identity impersonate="true"
    />
    to resolve custom solution which need impersonate="false"
    Run command in evaluated privilege...

  • Links in search results do not open new tabs.

    I'm missing something here and in other threads on this subject. I used to be able to search in the search bar, using google, for instance, and a new tab would open with the search results. Then if I left clicked on a link within the search results another new tab would open and switch to the linked page.
    I don't remember how that was set up, but I know I didn't have to go into about:config or install a special add-on for that. I think it was set up in the tab mix plus add-on.
    I have no problem with the search results opening a new tab, it's that I now have to middle-click on a link or right-click + click on "open in new tab".
    What changed here and why? My old method worked in Ver. 21, it Changed in Ver. 22.
    It seems like all these "updates" remove stuff we used to have with no notice and then come up with more finger clicks and config edits to do what was straight forward before.

    You may also have to create an allow exception to keep this cookie.
    In case you are using "Clear history when Firefox closes":
    *do not clear the Cookies
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception.

  • No search result using managed property from a column of a published infopath form

    Hi,
    I'm trying to use a managed property in the advanced search to retrieve only words from a column of a published InfoPath form. We are using FAST Search and verify that the column are being crawled by checking the crawled property in Central Admin but still
    cannot retrieve search result for the managed property. We also do a full crawl before testing the search. Thank you..

    Hi Rommel,
    When we create a column from a list (not site column), then we need create list item with this column value, then we need to full crawl, then the the crawled propery ows_listColumnName will be generated, then create a managed property to map this
    crawled property(start a full crawl again if needed), then add the custom managed property in advance search web part property, then check again.
    Here is an article about how to add the custom managed proerpty in advanced search web part, you can take a look.
    http://waelmohamed.wordpress.com/2011/05/31/add-custom-search-properties-in-your-advanced-search-sharepoint-2010/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Missing Last Letters in Search Results

    I am using Outlook 2010 (version 14.0.4760.1000) and am experiencing a problem in the search results list where the last letter of the sender, subject and folder (possibly any field with character data) is truncated by 1 character. For example, if the sender's
    name is "John Smith", this would be displayed as "John Smit", "Inbox" is displayed as "Inbo".
    Outlook is set up as a POP3 client and uses 2 Data Files.  The problem only seems to occur with search results from the default data file.
    It looks to me like this is a bug. Any ideas?

    Hi,
    Thank you for using Outlook IT Pro Discussions forum. 
    From your description, I understand that the last letters of the searched results are
    missing in Outlook. If there is any misunderstanding, please feel free to let me know.
    This behavior is very strange.
    We can try to create a new profile to test the issue.
    Here are the detailed steps on how to create a new profile to test this issue
    ==============
    1.      
    Exit
    Outlook.
    2.      
    Go to
    Start > Control Panel, click or double-click
    Mail.
    Mail appears in different Control Panel locations depending upon the version of the Microsoft Windows operating system, Control Panel
    view selected, and whether a 32- or 64-bit operating system or version of Outlook is installed.
    The easiest way to locate
    Mail is to open Control Panel in Windows, and then in the
    Search box at the top of window, type Mail. In
    Control Panel for Windows XP, type Mail in the
    Address box.
    Note   
    The Mail icon appears after Outlook starts for the first time.
    The title bar of the Mail Setup dialog box contains the name of the current profile. To select a different existing profile, click
    Show Profiles, select the profile name, and then click Properties.
    3.      
    Click
    Show Profiles. Choose Prompt for a profile to be used.
    4.      
    Click
    Add.
    5.      
    Type a name for the profile, and then click
    OK.
    6.      
    Highlight the profile, and choose
    Properties. Then Email Accounts.., add your email account in the profile.
    7.      
    Start
    Outlook, and choose this new profile.
    If this problem does not occur in the new Outlook profile, the old Outlook is corrupted. We can delete that and use a new Outlook profile.
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for
    you, please feel free to let me know.
    Best Regards,
    Sally Tang

  • Is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    We're using SharePoint 2013 and I'm trying to modify the search results page for one site collection. By default, it uses the search results page from the parent site which is the search center being used by default for the web application. I need to make
    sure that the site collection will only retrieve search results within the site collection (search everything has to be disabled). I found a way but I had to create another search center site to accomplish this, otherwise, it will affect the search center
    site of all other site collections on the web app.
    Now is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    According to your description, you want to retrieve the search results within the site collection.
    As a workaround, you can create a custom result source for the site collection and you will retrieve the search result within the site collection.
    More information about how to create result source in SharePoint 2013, please refer to :
    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx
    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html
    Best regards

  • RoboHelp 10 FlashHelp not returning search results

    Hello All,
      I have been using Robohelp for some time now going all the way back to RH7. Currently using RoboHelp 10. I just created a RH10 Flashhelp project and I am having problems with the search results. Here is what I get.
    After Producing FlashHelp and opening localling to test search I get the following
    IE 9: Search works correctlly
    Firefox 26.0: Search returns no results immediately, no long progress of searching almost instant return of no results.
    Chrome: same as Firefox.
    Hosting on IIS 6 Windows 2003 server R2 with Service Pack 2
    IE9: No search results
    Chorme: No search results
    Firefox: No search results
    Does anyone know of possible browser or RoboHelp generation settings that may cause this.
    Thank You,
    Anthony Padgett

    Hi Anthony
    As you are producing FlashHelp, (well, assuming you are based on this being the FlashHelp forum and all) I might suspect looking at the Flash Player installed on your system. Note that IE, Firefox and Chrome implement the Flash Player differently. So it's entirely possible to have perhaps version 8 of the Flash Player on IE and version 12 in Firefox. Not sure if Chrome is special or if it uses the same player as FF or IE.
    But that's where I'd begin looking.
    Additionally, it might also depend on whether you are viewing the help content off your local C drive or whether you are testing after uploading to a web server.
    Cheers... Rick

  • Proxy problem with Yahoo search returned links

    We have two BM servers here. Older one Netware 6 sp5 w/ BM 3.7 sp3 that works well. A replacement that I have had up but not currently using much Netware 6.5 SP8 w/ BM 3.8 sp5. The latter one has a problem with Yahoo search results. If I point a workstation to the older NW6 BM it works fine in Bing, Google & Yahoo. If I point it to the NW6.5 BM then it will work fine in Bing and Google but in Yahoo it will return the results but when you click on any link there I get this message:
    Yahoo!
    Yahoo! - Help
    The requested URL was not found on this server.
    Please check the URL for proper spelling and capitalization. If you're having trouble locating a destination on Yahoo!, try visiting the Yahoo! home page or look through a list of Yahoo!'s online services. Also, you may find what you're looking for if you try searching below.
    Any ideas? I have no access rules enforced. Anything that might be of help would be greatly appreciated.....Thank you!

    On 03/10/2014 09:56 PM, jpeteet wrote:
    >
    > Mysterious;2310138 Wrote:
    >> On 03/07/2014 09:06 PM, jpeteet wrote:
    >>>
    >>> We have two BM servers here. Older one Netware 6 sp5 w/ BM 3.7 sp3
    >> that
    >>> works well. A replacement that I have had up but not currently using
    >>> much Netware 6.5 SP8 w/ BM 3.8 sp5. The latter one has a problem with
    >>> Yahoo search results. If I point a workstation to the older NW6 BM it
    >>> works fine in Bing, Google & Yahoo. If I point it to the NW6.5 BM
    >> then
    >>> it will work fine in Bing and Google but in Yahoo it will return the
    >>> results but when you click on any link there I get this message:
    >>>
    >>>
    >>> Yahoo!
    >>> Yahoo! - Help
    >>>
    >>>
    >>> The requested URL was not found on this server.
    >>>
    >>> Please check the URL for proper spelling and capitalization. If
    >> you're
    >>> having trouble locating a destination on Yahoo!, try visiting the
    >> Yahoo!
    >>> home page or look through a list of Yahoo!'s online services. Also,
    >> you
    >>> may find what you're looking for if you try searching below.
    >>>
    >>>
    >>> Any ideas? I have no access rules enforced. Anything that might be of
    >>> help would be greatly appreciated.....Thank you!
    >>>
    >>>
    >>
    >> 1. Verify that you use the same proxy.cfg on both servers and the same
    >> settings like persistent connections.
    >> 2. Take a lan trace on the 3.7 when hitting the yahoo url and a lan
    >> trace on the 3.8 doing the same action and compare the differences.
    >
    > I am still trying to make sense of the Wireshark output. I can see where
    > I get the HTTP/1.0 403 Forbidden. What is happening upon further
    > inspection is when I click on a link returned from a yahoo search it
    > actually takes me to a link that always starts
    > "http://r.search.yahoo.com/.......blah blah blah. But If I go to the
    > newly opened tab (in IE) and add 's' to the HTTP address and hit enter
    > - the link works. Maybe that will help. This happens whether or not I
    > have "enforce access rules" checked.....
    >
    >
    1. Verify that you use the same proxy.cfg on both servers and the same
    settings like persistent connections.
    2. Compare both traces, the working one and the non working one. See if
    the returned link from yahoo is the same on both traces and it is coming
    from the same server. You may have another firewall/router up in the
    path causing the issue.
    3. Before taking the lan traces on the netware server using pktscan.nlm,
    unload proxy, load proxy -cc to clear cache. Then take the traces and
    see at what point the non working one differs from the working one.
    check that info is coming from the same up server

  • Trouble with search results landing page

    Hello. I am having problems with my search results page linking correctly. I get the error that the page can not be found. 
    http://highestgood03.businesscatalyst.com/_blog/Highest_Good
    What am I doing wrong? Any help will be appreciated. Thanks!

    Perfect! Thanks for your help.
    I have another question. Right now for my search results I have {tag_image} inserted. It is currently rendering a picture of a pencil.
    How do I change the image? Is it possible to have a unique image for each blog posts? Thanks!

  • Retrieving the Full Path of the Document / Folder in Search results

    Hello,
    We have a custom portlet to perform search in knowledge directory. We are able to retrieve the results from knowledge directory and would like to know on one enhancement feature.
    Would like to know if it is possible to retrieve the directory structure / path of the document / folder. Something like "\Knowledge Directory\Customer Service\...." I have seen this path come up in search results when using Portal Admin. Not sure if it is available when using the idk.dll
    Below is a sample code in C#. Would you know if there is a way I can retrieve the directory strcuture. If so, what method would give me that value? I tried GetURL, but that gives me the URL of the document http://portal/.....as compared to the path.
    ===== 
    using Plumtree.Remote.Portlet; 
    using Plumtree.Remote.PRC; 
    using Plumtree.Remote.PRC.Search;
    //Establishing Session with Portal
    IRemoteSession session = RemoteSessionFactory.GetExplicitLoginContext(new Uri(portletPortalAPIPref), username, password);
    ISearchFactory searchFactory = session.GetSearchFactory();
    searchRequest = searchFactory.CreatePortalSearchRequest();
    searchRequest.SetQuery(txtSearchText.Text);
                //Setting up the Search Parameters – Objects to Search, Order By, Number of Results
      ObjectClass[] objectTypes = { ObjectClass.Document, ObjectClass.DocumentFolder };
      searchRequest.SetObjectTypesToSearch(objectTypes);
       searchRequest.SetResultsOrderBy(PlumtreeField.NAME);
       searchRequest.SetOrderAscending(true);
      searchRequest.SetResultsCount(0, RecordCount);
    //Executing the Search
    searchResponse = searchRequest.Execute();
    resultSet = searchResponse.GetResultSet();
      //iterate through the results
    IEnumerator resultsfolder = resultSet.GetResults();
    while (resultsfolder.MoveNext())
                        IPortalSearchResult result = (IPortalSearchResult)resultsfolder.Current;
    Convert.ToString(result.GetRank() + 1);
    result.GetIconURL().ToString();
    result.GetURL().ToString();
    result.GetName().ToString();
    result.GetExcerpt().ToString();
    result.GetLastModified().ToString();
    result.GetClassID().ToString();
    result.GetObjectID().ToString();

    Have you tried getting the extended data and the Parent Folder ID. (Plumtree.Remote.PRC.IExtendedData)
    Using an additional object search to get the Path for the Parent Folder ID.
    Here is a snippet that may help
    Plumtree.Remote.PRC.IObjectManager objectManager = session.GetObjectManager(Plumtree.Remote.PRC.ObjectClass.<your class to return>);
    Plumtree.Remote.PRC.IObjectQueryRow qResults = objectManager.QuerySingleObject(<id of object to return>);
    if (qResults != null)
        Plumtree.Remote.PRC.IExtendedData ied = qResults.GetExtendedData();
        if (ied != null)
           sResult =  ied.GetStringValue(<property you want to return>);

  • IN clause in DB Adapter  - Problem in retrieving results

    Query builder in the Oracle Database Adapter doesn't give an option to include IN clause in the SQL. If I include that in the SQL directly say like the following
    SELECT XREF_CODE, SOURCE_VALUE, TARGET_VALUE FROM XREF_LOOKUP WHERE (XREF_CODE IN ( #XREF_CD))
    and I am passing 'SIEBEL_PM_COUNTRY', 'SIEBEL_PM_LEASETYPE' to the XREF_CD parameter.
    This doesn't retrieve any result.
    opmn log file:
    <oracle.tip.adapter.db.TopLinkLogger log> SELECT XREF_CODE, SOURCE_VALUE, TARGET_VALUE FROM XREF_LOOKUP WHERE (XREF_CODE IN ( ?))
         bind => [SIEBEL_PM_COUNTRY,SIEBEL_PM_LEASETYPE]
    <oracle.tip.adapter.db.DBInteraction executeOutboundRead>Read the following objects: []
    But If I pass only one value, say, 'SIEBEL_PM_COUNTRY' to the parameter XREF_CD, it is fetching the result.
    opmn log file:
    <oracle.tip.adapter.db.TopLinkLogger log> SELECT XREF_CODE, SOURCE_VALUE, TARGET_VALUE FROM XREF_LOOKUP WHERE (XREF_CODE IN ( ?))
         bind => [SIEBEL_PM_COUNTRY]
    <oracle.tip.adapter.db.DBInteraction executeOutboundRead>Read the following objects: [<XrefLookup USA US SIEBEL_PM_COUNTRY />, <XrefLookup AUS AU SIEBEL_PM_COUNTRY />]
    I am not able to figure what goes wrong here as it is a IN clause which should give results in both cases.
    Can somebody please help me here.

    Thanks Joe Alex, have same problem in custom sql.
    imarichards,
    for example I don't use a pl/sql program because we are developing Integration solution which involved many closed system and create pl/sql program disallow us (course we can, but may not).
    Now we think about web service which execute sql with "IN" and return result (in future we may change it on standard functionality).
    may be nevertheless is more perfectly solution?
    select clause with IN is typically for Oracle products, I think :)
    thanks.

  • I have one problem and I think it is a settings issue. When I google the web I get results. Now, when I visit some website and I return to my search results I don't have any markers (diffrent link colour for visited sites in IE).

    Question
    I have one problem and I think it is a settings issue. When I google the web I get results. Now, I visited some website and then I want to return to my search results and pick another search result. And there is a problem: I don't have any markers (diffrent link colour for visited sites in IE) that would help me to distinguish visited and not visited sites.

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

Maybe you are looking for

  • Report of request for customer created by ZREQ

    Dear all we create the customers using the ZREQ1, i need create a report of all customer taht was created by day, in three ranges of time and in all status. using the transaction /NESGLB/MGTDM01_QRC i can extract the request with status are finished

  • Ipod no longer responding

    I've had my ipod for a few months now, and it has always worked with my computer. However, I just recently charged it after not using it for about 2 months, and now it is giving me an error message when I try to turn it on. After I disconnected it fr

  • PI to XI Scenario

    Hi all, i have to send a Message from PI to Xi using Xi Adapter. BS => PI => XI => BS Both PI and XI are in differend SLD, so i define Xi as a Business Component in PI Integration Builder. The Communication Channel of Type Xi Adapter Receiver use  Ad

  • Work flow approvers problem

    HI I have created a document library with 3 specific columns of where I pick 3 people to be approvers when uploading a document. I then have a approval workflow set to route the document to each approver in serial once they have added their content.

  • How can I extend the range of my WESTELL 7500? Please help.

    I installed a security camera outsite of my house and unfortunately the modem/router is on the opposite end. The camera would connect on and off as opposed to on all the time when it was mounted inside. I am researching around and it looks like I can