Problem using the FederatedSearch / Result set empty

Hello,<br>
<br>
I've the following problem using the FederatedSearch:<br>
In my KM-Folder I've two documents.<br>
I created a simple search AbstractPortalComponent to search in the special KM-Folder.<br>
If the query is "*" I will get the right number of documents.<br>
But If I will access them the iterator is empty...<br>
Please see the code below:<br>
<br>
Best regards<br>
Klaus<br>
<br>
<br>
IIndexService indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);<br>
<br>
SearchQueryListBuilder sqb = new SearchQueryListBuilder();<br>
<br>
sqb.setSearchTerm(query);<br>
IQueryEntryList qel = sqb.buildSearchQueryList();<br>
RidList ridList = new RidList(); <br>
ridList.add(RID.getRID(OR_KM_ROOT_PATH + "/" + OR_KM_CURRENT_PATH));<br>
ridList.add(RID.getRID(OR_KM_ROOT_PATH + "/" + OR_KM_ARCHIVE_PATH));<br>
IResourceContext resourceContext = new ResourceContext(user);<br>
IFederatedSearch federatedSearch = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);<br>
IFederatedSearch search = (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);<br>
ISearchSession session = federatedSearch.searchWithSession(qel, ridList, resourceContext, null, null);<br>
response.write("-"+session.getTotalNumberResultKeys()); ### writes 2-ok-<br>
response.write("- "+session.getNumberResultKeys()); ### writes 2-ok-<br>
ISearchResultList sresults = session.getSearchResults(1,session.getTotalNumberResultKeys());<br>
               <br>
ISearchResultListIterator iter = sresults.listIterator();<br>
response.write("> "iter.hasNext()"<br>");          ### writes "false"!???
<br>               
while (iter.hasNext())<br>
{<br>
...<br>
}<br>

The plan is to be running with more than just two sites (though at the moment I am testing with only two).
What happens is a client comes on-line and requests a list of sites from a router. It then picks one of the sites from the list and adds that as a replication site in the repmgr.
It then goes about opening up the database and doing some other bookeeping. Finally we start the replication manager and once the NEWMASTER event is recieved a sync is done.
So while this DELAYCLIENT/rep_sync is a bit overkill for the two-site test I am doing now, the design I am working towards will be a multi-site setup.

Similar Messages

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Interactive Reporting - Chg Query from Using Table to Result Set w/ same Co

    Currently I have a query that uses an Oracle table. I would like to change the query to use the result set of another query wh/ contains the same information & column names (however, since I am creating the results from scratch, I don't have to wait for the Oracle table to be updated). Is there a way to do this change w/o IR automatically removing the column names from the results and then making me go back into each result set and re-adding them, formatting them, etc. For example, the query currently uses a table called Defect_History, wh/ has columns bug_id, application, sub-app, etc. This table is not updated on a daily basis, so I have created a new query wh/ goes against the source tables used in creating the Defect_History table and puts the latest information into an IR result set. Is there a way to change the current queries that use the Defect_History table to use the IR result set instead w/o basically recreating each of the subsequent queries? I have gone into Dashboard Studio Optimize Utility, but the queries show as using Data Model, Data Model2, etc as the Parent and I am not able to make changes to it.
    Thanks.
    Terri

    I am in the Dashboard Studio - Optimize Utility. When I select that report (or any of the others), the Reparent button is grayed out on the toolbar. I've also tried right-clicking on the report and it's grayed out there as well. Any ideas?

  • Problem using the Write to SGL VI and Read from SGL VI

    Hello Sir, I have a problem using the Write to SGL VI. When I am trying to write the captured data using DAQ board to a SGL file, I am unable to store the data as desired. There might be some problem with the VI which I am using to write the data to SGL file. I am not able to figure out the minor problem I am facing. I am attaching a zip file which contains five files.
    1) Acquire_Current_Binary_Exp.vi -> This is the VI which I used to store my data using Write to SGL file.
    2) Retrive_BINARY_Data.vi -> This is the VI which I used to Read from SGL file and plot it
    3) Binary_Capture -> This is the captured data using (1) which can be plotted using (2) and what I observed is the plot is different and also the time scare is not as expected.
    4) Unexpected_Graph.png is the unexpected graph when I am using Write to SGL and Read from SGL to store and retrieve the data.
    5) Expected_Graph.png -> This is the expected data format I supposed to get. I have obtained this plot when I have used write to LVM and read from LVM file to store and retrieve the data.
    I tried a lot modifying the sub VI’s but it doesn’t work for me. What I think is I am doing some mistake while I am writing the data to SGL and Reading the data from SGL. Also, I don’t know the reason why my graph is not like (5) rather I am getting something like its in (4). Its totally different. You can also observe the difference between the time scale of (4) and (5).
    Have a Good Day
    Regards,
    Krishna
    Attachments:
    LABVIEW_Files.zip ‏552 KB

    As already discussed a while ago, your binary data does not contain timing information. You need to tell it the scan rate so it can reconstruct the time axis correcty.
    From the data, it seems the sample file was recorded at 0.5MHz. Take the inverse and set the time increment. Voila!
    Your sample file is two column data with one colum all zero. You need to set the number of columns to two, to only get the good data in channel 1.
    Your acquisition program contains unecessary FOR loops, you can remove the inner loops without change in result.
    It makes no sense to convert to SGL if you initialize the shift registers with an empty DBL array. You need to initialize with an empty SGL array.
    (The code could be simplified quite a bit more, but this should give you some directions).
    The attached zip shows some ideas (LabVIEW 7.1).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    LabVIEW_FilesMOD.zip ‏195 KB

  • Could not complete the command because of a problem using the Adobe Color Engine

    Hi all
    This bizarrely started this morning - completely out of the blue - and I've no idea why.
    Setup: Mac 10.8.2 / Creative Suite Premium PhotoShop CS5 extended (patched to 12.04)
    Am working on images exported from LightRoom 4 (16bit A3 Pro Photo RGB PSDs) in PhotoShop CS5.
    As part of my image grading process I have a PhotoShop Action that does the following: copy layer to new document (document respects all of copied layer settings) > Image > Adjustments > HDR toning > apply a certain HDR preset > copy to resultant image back to original doc > set opacity as 40%.
    Totally out of the blue, after having this action for about 2 months, this morning I start getting a warning dialog of "Could not complete the command because of a problem using the Adobe Color Engine" and the action fails. The failure seems to take place at the 'make document' part of the action and seems to somehow be related to the contents of the clipboard.
    I've tried trashing and re-creating the action. It works first time out fine and then - on the next image - errors again.
    At present I can only safely carry out the work 'manually' by completing all the actions myself.
    I can think of no settings that have changed and the OS hasn't been updated in a while.
    I have found one other thread on a similar problem in PhotoShop Elements, but no definitive solution.
    Any help appreciated as I have a shedload of stuff to process.
    Best wishes
    TP

    OK: trash of prefs didn't work. Tried thrice. Re-created orig action. same problem.
    BUT!
    Your 'Image > Duplicate' suggestion does seem to work. If I use that in a new action as the method for creating the HDR version doc (instead of 'Select > Copy > New > Paste), it seems to work.
    Will try that out this afternoon, but for now: WIN!
    Many thanks for the suggestion!
    TP

  • WIndows 8.1 printer error: windows cannot print due to a problem with the current printer set up

    My HP OFFICEJET 8500 PRO was working just fine wirelessly until I installed the Windows 8.1 update from the Microsoft.  Now I cannot print at all.  I get an error that says,  "windows cannot print due to a problem with the current printer set up".  I have tried reinstalling and a ton of other solutions to no avail.  Can someone PLEASE Help!

    Hello there, @jesseangelique ,
    Welcome to the Community!
    I would love to help you with the printing issue you're having, since the Windows 8.1 that was done.
    Please run the Print and Scan Doctor. Write me back with the results or post a screen shot of the results and I will have a look at them.
    This diagnostic tool will check for any conflicts that could be causing the issue. The tool will show you a report at the end. If there was a problem that the tool could not fix, you will notice it in the results.
    Also, let me know which Officejet 8500 Model you have:
     HP Officejet Pro 8500 All-in-One Printer - A909a
     HP Officejet Pro 8500 All-in-One Printer - A909b
     HP Officejet Pro 8500 Premier All-in-One Printer - A909n
     HP Officejet Pro 8500 Wireless All-in-One Printer - A909g
    Hope to hear from you!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Problem in creating Saved Result Set (SRS) in OBIEE 10.1.3.4

    Hi,
    We have migrated Siebel Analytincs 7.8.5 to OBIEE 10.1.3.4, and we are now unable to create any SRS from OBIEE though we can create Segment and marketing cache for the segment.
    We did the following steps -
    1. Unisntall Siebel Analytincs 7.8.5
    2. Install OBIEE 10.1.3.4
    3. Use MIGRATE tool (sawmigrate) to migrate RPD & WEBCAT
    4. We have ALTERed the SRS tables - M_SR_HEADER, M_SR_ACCOUNT (as in OBIEE version there are many new columns have been added)
    5. We passed GLOBAL CONSISTENCY in the RPD
    6. We followed the steps in the document *"Oracle®Marketing Segmentation Guide Version 10.1.3.4 July 2008"*
    7. We created a Saved Result Set Format as instructed in the document - here we are very confused to select the list of columns - we don't know what should be the excat source / format
    8. Then we click the SRS create button
    9. We got the below error -
    Error Codes: QS2QOLYY:GDL67CY9:IHVF6OM7:OPR4ONWY:U9IM8TAC
    Error in getting cursor for WorkNode (Id:0)
    Authentication Failure.
    Odbc driver returned an error (SQLDriverConnectW).
    *State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused. [nQSError: 43001] Authentication failed for Administrator in repository Star: invalid user/password. (08004)*
    Can anyone help us to resolve the issue ?
    A quick response is much much appreciated.
    Many Thanks,
    Prasanta

    Hi,
    It seems like you didnt setup the Administrator user for Saved Result Sets as it mentioned in the Marketing Segmentation Guide.
    Here is an extract from the guide:
    Setting Up the Web Administrator for Managing Cache and Saved Result Sets
    Some queries issued by the segmentation engine require the use of the Execute Physical stored
    procedure. These queries include delete statements on the cache, delete statements on the saved
    result sets, and insert statements for the cache and saved result set. The Execute Physical stored
    procedure must be run by a user with administrator privileges. The administrator user is set up in
    the instanceconfig.xml file.
    NOTE: The BI Administrator password and login parameters are case sensitive.
    To set up the administrative user in the instanceconfig.xml file
    1 Open a command shell and navigate to the <OracleBI>/web/bin, where <OracleBI> represents
    the root directory of the installation.
    2 Execute the following command:
    cryptotools credstore -add -infile <OracleBIData>/web/config/credentialstore.xml
    3 When prompted, enter the following values:
    Credential Alias: admin
    Username: Administrator
    Password: <enter Admin password here>
    Do you want to encrypt the password? y
    Passphrase for encryption: <password >
    Do you want to write the passphrase to the xml? n
    File "<OracleBIData>/web/config/credentialstore.xml" exists. Do you want to overwrite it? y
    4 Open the credentialstore.xml file and verify that the following section has been created:
    <sawcs:credential type="usernamePassword" alias=“admin">
    <sawcs:username> Administrator </sawcs:username>
    <sawcs:password>
    <xenc:EncryptedData>

  • I am having a problem using the help menu in Adobe elements 5

    I am having a problem using the help menu in Adobe elements number five.
    When I open the help menu, the dialogue box defaults to an unreadable display font. Is there any way to change that default font? Using the help menus to find a solution is not possible for I cannot read what it is displaying.

    For product, there is an option in preferences where we can set fonts. There are two options: One is application font and other is system font. I am talking about elements 8 which I have but not sure that will solve your problem which is help related.
    Hope Help in 5th version is html which opens in Browser? Please confirm.

  • Could not complete the command because of a problem using the Adobe Colour Engine??

    When I am playing back a set of recorded actions, I receive a message that says "Could not complete the command because of a problem using the Adobe Colour Engine". This occurs after I copy a part of an image to paste it onto a new file. It occurs during the "Make" part(making a new file) and I was just wondering how to fix it.

    It's a known (but esoteric) bug in Photoshop CS5 and earlier, seen with grayscale images.  It used to crash utterly, but after I reported it I think they patched Photoshop 12.0.something to avoid the crash.  However, the step still fails when you make a new grayscale image in an action.
    I saw it because I created an action to paste the clipboard into new document, all in one motion.  It virtually always works as long as I have a colored image in the clipboard.  But not grayscale.
    One workaround, which is not particularly convenient, is to turn on prompting for the Make new image step.  I haven't used this workaround for a while, but it used to be that if you confirmed the "File New" operation manually it would continue and work.  I don't know if the workaround is still valid.
    -Noel

  • Problems using the Program Monitor

    Dear Premiere users,
    I recently bought Adobe Premiere CS3 and i'm having problems using the Program Monitor.
    I cant see anything off screen. It just wont show anything if its outside the boundaries of the screen. I can adjust the zoom level but that wont change anything even if i set it to full screen.
    Another problem I'm having is that it wont show motion paths or clip handles. Even if I make a motion path in the Effects Control window it wont show the path in the Program Monitor.
    I really appreciate any advice on this because it drives me crazy. I already tried installing it again but that wont solve the problem.
    Thanks in advance.
    Greetings,
    Peter

    First of all I hope you are being sarcastic Jim. Sorry for being not that clear but I'm not stupid :).
    Craig Howard is right. I thought that the Program Monitor was similarly to AEFX. But I suppose I was wrong on this one? So you cant get something to display outside the image area? If I place a clip outside the project dimension it just disappears in the Program Monitor.
    And about the motion paths. I thought I read in the Premiere help files that they do show up in the Program Monitor. The topic says: "Adjust position, scale, and rotation" or "Animate motion in the Program Monitor ". There are pictures over there that show clip handles and motion paths in the Program Monitor. Clicking the effect wont do anything for me. Its like my video driver cant get them to show or something.
    Edit: I found a tutorial here:
    http://digitalproducer.digitalmedianet.com/articles/viewarticle.jsp?id=26660&afterinter=tr ue
    They are dragging frames off screen and are using the handles and borders around the frame to adjust them. So I guess it should be possible, but how?
    Thanks for the help.

  • Using the same correlation set to multiple instances of the same process

    Hi all,
    Assuming that I have a Purchase Order with multiple items and I have a BPEL process that is triggered for each item.
    When the Purchase Order is cancelled by the customer, I want to cancel all BPEL process that is still running. I'm using SOA Suite 11.1.1.2.
    My first attempt was to use an event handler associated to a cancellation operation, but I couldn't do this because when the second BPEL instance was started, a conflictingReceive BPEL Fault is triggered. This occurs because BPEL can't have more than one active receive/on message using the same correlation set.
    Another way to do this is using a different correlation set for each instance (somethig like a composite key - Purchase Order ID + Item ID, i.e), but in this way I need to know all composite key in advance and send one message to each instance specifically.
    Anyone have any suggestion of how to cancel more then one instance of the same BPEL process using Event or a generic way that does not need to send one message for each instance?
    Events work very well to start more then one BPEL process but does not work well to receive an intermediate message during process execution because in this case we need correlation set to associate the event with the correct instance and BPEL does not support more then one instance of the same BPEL process waiting for the same correlation set.
    Any suggestion will be very welcome.
    Thanks in advance,
    Rafael

    Never mind. I got it.
    I put the iisforward.dll and .ini is a seperate folder, and edited the iisproxy.ini's to include the portnumber like this. And I changed the hostheaders in IIS to Site1, Site2 etc
    vhost1=Site1:80
    Site1:80=C:\Sites\Site1\iisproxy.ini
    vhost2=Site2:80
    Site2:80=C:\Sites\Site2\iisproxy.ini
    vhost3=Site3:80
    Site3:80=C:\Sites\Site3\iisproxy.ini

  • ITunes not using the defined proxy setting

    iTunes 10.0.1 on MacOS X 10.6.4 isn't correctly using the system
    proxy setting defined through:<pre>System Preferences…
    Network
    Advanced…
    Proxies
    Web proxy (HTTP)
    Web Proxy Server
    myproxy.my_company.mycountry : 3128</pre>
    For example, when selecting:<pre>Advanced
    Get Track Names</pre>
    a network analysis shows that the machine is trying to
    connect directly to:<pre> service.gracenote.com</pre>
    with plain: http
    where it should use port 3128 as defined.
    This misbehaviour is causing an infinite loop, a "death" loop.
    This death loop may sometimes end in a newly inserted CD not being
    recognised by iTunes and the Finder.
    Before submitting this as a bug to Apple, I wanted to check if I'm
    not the bug.
    Did I miss something really easy in the iTunes
    setting to avoid this misbehaviour leading to death loops?
    <pre>--------
    don't look for my Macs models in my signature, this would be uggly... and irrelevant
    dan</pre>

    daniel Azuelos wrote:
    iTunes 10.0.1 on MacOS X 10.6.4 isn't correctly using the system
    proxy setting defined through:
    Before submitting this as a bug to Apple, I wanted to check if I'm
    not the bug.
    Did I miss something really easy in the iTunes
    setting to avoid this misbehaviour leading to death loops?
    No need to fill a bug report .
    It was magically repared with the 10.1 upgrade.
    Question answered through action. Great.
    <pre>--------
    don't look for my Macs models in my signature, this would be uggly... and irrelevant
    dan</pre>

  • Loading the different result sets in the same sequence for the target table

    Dear all,
    I have 5 tables say A,B,C,D as my source and i made 3 joins P,Q,R .the result sets of these 3 joins are loading into a target table X but with 3 different targets with same table name.
    I created one sequence say Y as my target table has primary key and mapped to three different targets for the same target table which i need to load.
    But after deployed and executed successfully ,i am able to load the data from three join result sets with differeent sequence numbers.
    I am looking to load data like this.
    If First Result set P has 10 Records,SEcond Result Set Q Has 20 and the third result set has 30 records then while loading data into first target it creates the seq for the 10 records from 1..10 and while loading the data for second result set ,it creates the sequence from 11 ...20 and while loading the third target with the third result set it creates the sequence from 21 ----30.
    But i am looking to load the three result sets in the sequence 1to 10 but not like creating fresh sequence for each result set.
    how can we achieve this in owb?
    any solution for this will be appreciated.
    thank you
    kumar

    My design is like following
    SRC1
    ---->Join1--------------------------->Target1( Table X)<-----Seq1
    SRC2
    SRC3
    ----> Join2----------->Target2(Table X)<----Seq1
    SRC4
    -----> Join3 -------> Target3(Table X)<-----Seq1
    SRC5
    Here the three 3 targets are for the same Table X as well sequence is same i.e seq1
    If the First Join has 10 rows ,Seq1 generates sequence in 1 to 10 while loading target1
    But while loading second target,Same Seq1 is generating new sequence from 11 but i am looking to load target2 and target 3 starting from sequence 1 but not from 11 or so.
    As per your comments :
    you want to load 3 sources to one target with same sequence numbers?
    yes
    Are you doing match from the other two sources on first source by id provided by sequence (since this is the primary key of the table)?
    No
    can you please tell me how to approach for this?
    Thank You
    Kumar

  • How to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?

    how to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?
    the message sked me to alter the quality of the DVD as the content was too large for the quality sellected.
    PLEASE HELP again,
    THANK YOU VERY MUCH
    MIchael

    Check the Advanced ➙ Project Information menu option to make sure the playing time of the entire project, movie plus menu is below the 120 minute limit.
    OT

  • Does anyone have problems using the  highlights, shadows and sharpness edits in iphoto? Since I uploaded Mountain Lion, those editing tabs do not work!

    Does anyone have problems using the highlights, shadows and sharpness controls in iphoto 11? Since I uploaded Mountain Lion on my
    mac mini, those editing features no longer work!!!!

    Sorry, I booted into 10.8 just to test this, but I only have iPhoto 08.

Maybe you are looking for

  • LaserJet 2200d on Win 7 Print quality

    I just installed a new HP oem toner cartridge and it look like I have dark gray/black lines and smudges.  It look sorta like I took a semi dry painter roller to the page.  I ran the HP cleaner utility but no help there.  Any suggestions?

  • Logic Pro X not seeing any loops    Garage band does!!

    Need help in directing Logic Pro to see and list loops...tried re indexing...uninstall and reinstall program....updates....about at the end for Logic pro...but I hate to give up!....any Help? Thanks Forrest S

  • Jcomponent vs jframe

    hey all, im kinda new in java programming but i like this language alot, i was trying to look online for some GUI code, well i found a lot of sample swing code, some of them extends JComponent while the other extends JFrame... what exactly is the dif

  • Web Dynpro ABAP application

    Hi All, Is it possible to make a Web Dynpro application available on internet without using Portal? How? Thanks Hardik

  • Quasi newbie.  simple task. embarrassed.

    i generally can fig things out by tooling around but i'm really time crunched. if someone wouldn't mind telling me how to do this your karma quotient will sky-rocket! ok i have 3 already encoded files to lay into dvd studio pro. 1. a motion graphic s