Prevent Search version history returning checked out results

Hello all,
I'm working on a Java application that uses the Content DB API.
As part of the application, the user can search for documents, including searching old versions of documents. To do this I have used the SEARCH_VERSION_HISTORY option on SearchManager.
For each result I compare its ID with all the versions of that document, and with the latest version of the document. However, sometimes I am getting a result returned for a document that is neither the latest version nor any previous version.
This appears to happen when a document is checked out. For example, say I have a document a.txt, which displays two versions if I display version history in the standard Content DB interface. I then check out this document. When I search for this I will get:
a.txt (Version 1)
a.txt (Version 2)
a.txt (Checked out version, which isn't returned in the list of versions for that document ID, doesn't have a version number and is not listed as the latest version)
This is inconsistent with what is displayed through the standard Content DB interface.
How can I detect the checked out results so that I can remove them from my search results? Any help would be greatly appreciated,
Thanks,
Alex.

Hi,
You're not doing anything wrong. It's just that the results are skewed due to the large number of on page duplicates for the target key. You'll see that if you play a little with the page size, set a DbBtreeCompare and a DbDupCompare, write a variable length data portion, you'll probably get different results each time you inspect the key range statistics. This a consequence of the way keys are distributed on pages and the structure of the btree (you can look over the "__bam_key_range" method in "btree/bt_stat.c"). Note that the values you get are estimates, and are strongly influenced by the factors mentioned.
If you want to get the real values you'll have to iterate the entire database using a cursor and call the "count" method on each key to determine the number of data items associated with that key. This way, you can determine also the number of key/data pairs in the database by adding the duplicates of each key.
Regards,
Andrei

Similar Messages

  • My prefered(default) search engine, but searches in FF4 return only Yahoo results. How do I fix this?

    I installed FF4 this morning, and while I expected addon problems, I did not expect this. All searches return Yahoo results, even though my default SE is google. The google icon still shows in my search bar...I'm confused.

    Thank you, thank you, thank you, the-edmeister, thank you! I am in your debt, sir!

  • Apple TV search from "Movies" returns only music results after 6.0 upgrade

    6.0 (6646.65) upgrade appeared to complete sucessfully. Apple TV is 3rd generation Rev A.
    Any suggestions, remedies appreciated.  Thanks much.

    For everyone's information, I tried the following :
    (1) Tried to use another Apple account on the Apple TV box, unfortumately it had outdated information related to credit card information on the second account.  I tried restoring and trying the account but it still showed the old credit card information, which suggests that the software is not updating information on iTunes store account information.
    (2) I did ANOTHER restore of the software (third attempt).  I again restored the software to the Apple TV box, entered the original iTunes account information and then attempted to rent a movie.  This time...again via the intial attempt to rent, I was requested to enter the three or four digit code to my credit card.  I entered it and it immediately went back to the recent screen which requests the special code....an infiite loop request for information - never submits the information.
    (3) I accessed iTunes via my iPad through my home network - same as the Apple TV connection, went to movies, located the movie I attempted to rent through Apple TV and successfully rented the movie on my iPad.
    In my view, based on all of the steps I have taken in this communication thread, this is a software issue. .....anyone who can prove me wrong I am earntestly eager to hear from them.

  • Search for checked out content

    Hello,
    I use UCM 10g with SiteStudio. I would like to create a QueryText that searches for all the checked out content. I checked in the database and found that dIsCheckedOut is the variable that is keeping this information.
    The following code gves me no search results, also some content is checked out. Did someone try this before? What am I doing wrong?
    QueryText = "(dIsCheckedOut <substring> `1`)"
    SS_GET_SEARCH_RESULTSThanks
    Tobias

    No you are quite right to point out it is the quickest way to do this - not knocking you, it works and I have certainly done it myself BUT it was on a static (published by SSPU) site so performance was less of an issue.
    Thats the problem with Site Studio I think it is very easy to have a whole bunch of service calls going on.
    I guess other options to explore would be the use of a meta field to hold this information and use a filter to toggle the value on/off. Pretty useless but would mean that the value got promoted into the search results. Or modify the search query so that discheckout is pulled back by SS_GET_SEARCH_RESULTS.
    Tim

  • Question about deletion of checked out file using CMIS connector

    When testing file deletion with Adobe Drive connected to an implementation of CMIS server, I ran into some mildly unexpected behavior for when the file is checked out.
    I successfully checked out a file through Adobe Drive then deleted the file. Our server has a constraint that checked out files are protected against deletions, renaming, and moves. So, I was expecting the operation to fail. Instead, the result was that the file had its check out canceled.
    In the AtomPub binding, a cancel check out is specified by deleting the pwc version of the the checked out file. So, this behavior did not strike me as too far off my expectations and I confirmed that the objectid in the deletion request sent by Adobe Drive was the id for pwc version of the file.
    Is this behavior intentional? Or is this an artifact of the way Adobe Drive caches the objectid of files? Check out requests do return an objectid and that objectid is that of the new pwc version of the file. So, the later behavior would not surprise me.
    Thanks

    Hi,
         Yes, this behavior is intentional.
         To bypass the possible constraint during deleting a checked-out file, Adobe Drive intentionally try to cancel check out this file by deleting the pwc version of the checked-out file.
    Regards,
    Gang

  • Version History, item won't restore

    I am trying to restore a master page that isn't currently running as the master page in SharePoint 2010.  I made a change and it got corrupted somehow and the system crashed.  I then went to Site Settings and changed the masterpage to an older
    master.  Now I can move around the site again, but when I go to Version history of the original masterpage and try to go back to the previous version, it doesn't work.
    I click on Version History (after checking it out). Then I click on the date and I get the drop down for
    View, Restore, or Delete.  I hit Restore and it clicks, blinks away, then comes back as if I hadn't changed anything.  The current file is still selected as the current published major version.
    I also tried View and then tried to restore from that window without success.
     

    Hi,
    From your description, I know when you restore master page it seems nothing happen.
    I wonder if you check in your master page after you make some changes at the first time.
    To produce your issue, I made some changes in master page(such as add code “<script>alert(1);</script>” in the <head></head> section).If I checked in the master page. When I refreshed the page, windows shown message “1”. Then I followed
    the steps in your case, everything was OK, I could restore master page even though major version was still current published major version. But if I did not check in the master page, your issue occured.
    Also, you can test your issue via using SharePoint Designer. You can check the master page changed or not in SharePoint Designer after restoring master page.
    Best Regards
    Vincent Han
    TechNet Community Support

  • Search form history does not save in latest version of Gmail but does in older version

    In the latest version of Gmail, no search form history will save, but it does in the old version of Gmail. I have checked all clear history settings and they are all correct, as it does not delete any other form history including the old version of Gmail. This only occurs in the new version, which is why I've continued to use the older version. I have also checked for plugin conflicts and there are none. I'm on WinXP-SP3 using the latest 3.6.6 version of Firefox.

    Gmail may use autocomplete="off" for that form to prevent saving form data.
    Here is a bookmarklet to test that:
    <code>javascript:(function() }}catch(e) return(r)}R(self);var i,x;for(i=0;x=frames[i];++i)R(x); })();</code>
    See http://en.wikipedia.org/wiki/Bookmarklet

  • JDev-SCM Check Out File Version

    When using the RON, I have been able to successfully check out a specific version of a file using the graphical Version History Viewer (and right clicking on the appropriate node).
    When attempting the same within the 9i JDeveloper IDE, however, this functionality does not appear to work the same/correctly? The node turns blue (and SCM believes the file version is checked out), but JDeveloper does not appear to reflect the same....the icon in the System Navigator does not change to indicate the file's checked out status and the specific version of the file is not written to the workarea's download directory (as is the case with the RON)....?

    This is Release Candidate 2 on Win2K with the Windows Look & Feel. I have tried the Oracle L&F, too, with the same outcome. The same steps in the RON, however, produce the desired result.
    Thanks.

  • Cannot move version controlled resource if parent collection is checked out

    Hi,
    I want to move a document from one folder to an other one.
    The folders are all version enabled, and all part of the same FSDB repository manager.
    I tried to "Cancel Checkout" all the folders, without success. (I eaven to not understand what checkout is).
    If I cancel the versionning, this is working properly, but this is of course not the purpose.
    Do you know what to do ?
    Thank you for your support.
    Vincent

    Yes Julian,
    I confirmed I did intentionnaly enable the versioning on the documents and folder.
    And I want to keep versioning ...
    As this is working with other folder :
    I can move documents for this folder :
    - <D:response>
      <D:href>/irj/go/km/docs/BvD-it%20SEPData/Unrestricted/Technical%20Knowledge/BU%20Business%20Management/</D:href>
    - <D:propstat>
    - <D:prop>
      <D:lockdiscovery />
    - <D:version-history>
      <D:href>/irj/go/km/docs/BvD-it%20SEPData/.~system~/versions/4/18/292057791804</D:href>
      </D:version-history>
      <D:getlastmodified>Wed, 25 Jul 2007 12:19:21 GMT</D:getlastmodified>
      <D:ishidden xsi:type="xs:boolean" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</D:ishidden>
      <D:comment />
      <D:creator-displayname />
    - <D:resourcetype>
      <D:collection />
      </D:resourcetype>
    - <D:ordering-type>
      <D:href>dav:unordered</D:href>
      </D:ordering-type>
    - <D:supported-method-set>
      <D:supported-method name="GET" />
      <D:supported-method name="HEAD" />
      <D:supported-method name="PUT" />
      <D:supported-method name="COPY" />
      <D:supported-method name="MOVE" />
      <D:supported-method name="POST" />
      <D:supported-method name="PROPFIND" />
      <D:supported-method name="REPORT" />
      <D:supported-method name="PROPPATCH" />
      <D:supported-method name="ORDERPATCH" />
      <D:supported-method name="VERSION-CONTROL" />
      <D:supported-method name="CHECKIN" />
      <D:supported-method name="CHECKOUT" />
      <D:supported-method name="UNCHECKOUT" />
      <D:supported-method name="LABEL" />
      <D:supported-method name="UPDATE" />
      <D:supported-method name="ACL" />
      <D:supported-method name="DELETE" />
      <D:supported-method name="LOCK" />
      <D:supported-method name="UNLOCK" />
      <D:supported-method name="SEARCH" />
      </D:supported-method-set>
      <ImageSource xmlns="http://sapportals.com/xmlns/cm/rendering">/BvD-it SEPData/Unrestricted/Technical Knowledge/images/BU Business Management.img</ImageSource>
      <IconSource xmlns="http://sapportals.com/xmlns/cm/rendering">/BvD-it SEPData/Unrestricted/Technical Knowledge/images/BU Business Management.ico</IconSource>
      <sap:readonly xmlns:sap="http://sapportals.com/xmlns/cm" xsi:type="xs:boolean" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">false</sap:readonly>
      <sap:enhancedcollection xmlns:sap="http://sapportals.com/xmlns/cm" xsi:type="xs:boolean" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">true</sap:enhancedcollection>
      <IconRolloverSource xmlns="http://sapportals.com/xmlns/cm/rendering">/BvD-it SEPData/Unrestricted/Technical Knowledge/images/BU Business Management.icr</IconRolloverSource>
      <sap:modifiedby xmlns:sap="http://sapportals.com/xmlns/cm">bpl</sap:modifiedby>
      </D:prop>
      <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
    - <D:propstat>
    - <D:prop>
      <D:getcontentlength />
      <sap:description xmlns:sap="http://sapportals.com/xmlns/cm" />
      <startuperror xmlns="http://sapportals.com/xmlns/cm/crt" />
      <D:checkout-set />
      <state xmlns="http://sapportals.com/xmlns/cm/crt" />
      <D:checked-in />
      <D:checked-out />
      <D:displayname />
      <D:reftarget />
      <configurationerror xmlns="http://sapportals.com/xmlns/cm/crt" />
      <D:getcontenttype />
      </D:prop>
      <D:status>HTTP/1.1 404 Not Found</D:status>
      </D:propstat>
      </D:response>
    I think there is somethink I do not properly understand, but I'm not able to understand what ...
    Thank you
    Vincent

  • Search-Mailbox Search Query not returning correct results.

    Hi,
    I'd appreciate some assistance with the search and delete I'm trying to I'm run.
    I'm using the following command to find messages with a certain message class received before 01/01/14 in a mailbox.
    Get-Mailbox xxxxxxxxxxxxxxx | Search-Mailbox -SearchQuery '(Received:< 01/01/14) AND ("IPM.Note.Worksite.Ems.Filed")' -EstimateResultOnly | select displayname, success, resultitemscount,Resultitemssize
    When I first ran the command it returned 130,000 items, I ran it again with a -DeleteContent switch, all the items were successfully removed from the mailbox, great! However, when I look in the mailbox I can see ~1000 items with the message class in the command
    and dated 2013 or earlier, they meet the search criteria so I don't understand why when I run the command again it returns 0 items.
    Help!

    Hello,
    Based on your description, your cmdlet is ok.
    When you run the cmdlet with a -DeleteContent switch, the messages are not delete permanently. please try to run the cmdlet with a -DeleteContent switch and -Force switch to check the result.
    Besides, please use get-mailboxstatistics | fl cmdlet to check information about mailbox.
    Cara Chen
    TechNet Community Support

  • Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.

    I am using VS 2012 and BizTalk 2013 and attempting to deploy an application to BizTalk when I get these errors:
    Error 47
    at Microsoft.BizTalk.Deployment.Assembly.BtsMap.Save()
       at Microsoft.BizTalk.Deployment.Assembly.BtsArtifactCollection.Save()
       at Microsoft.BizTalk.Deployment.Assembly.BtsAssembly.Save(String applicationName)
       at Microsoft.BizTalk.Deployment.BizTalkAssembly.PrivateDeploy(String server, String database, String assemblyPathname, String applicationName)
       at Microsoft.BizTalk.Deployment.BizTalkAssembly.Deploy(Boolean redeploy, String server, String database, String assemblyPathname, String group, String applicationName, ApplicationLog log)
    0 0
    Error 49
    Failed to add resource(s). Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Failed to deploy map "XXX.BTS2013.XXX.Maps.map_XXXX_R01_InsLabProc".
    Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present. Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.
    0 0
    Error 46
    Failed to deploy map "XXX.BTS2013.XXX.Maps.map_XXXX_R01_InsLabProc".
    Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.
    0 0
    I also tried to Import a MSI file from our test environment to see if that would work...got the same errors.  After spending hours (not kidding) looking for an answer, all I could find is that a hotfix would work.  So, I got the hotfix from Microsoft
    Support and applied it then rebooted.  Still getting the same errors.  I'm absolutely at a stand still.  Interesting that I got this application to deploy yesterday and then the next time I deployed it I started getting these errors.  I'm
    ready to pull my hair out!
    Is there an answer for this out there somewhere?  Any help would be appreciated.
    Thanks,
    Dave

    Hi Dave,
    Which hotfix have you applied? I don't think a hotfix of this issue is available for BizTalk 2013 yet. You should create a
    support ticket with Microsoft to get a solution.
    If this answers your question please mark as answer. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Safari will not prevent search engine from providing suggestions, even though that block is checked in Privacy preferences.

    Safari will not prevent search engine from providing suggestions, even though that block is checked in Privacy preferences.

    I also seem to have having this problem, despite having checked the "prevent" option in Preferences. Typing words into the Safari search bar (NOT the Google search bar on one of Google's search pages) leads to suggestions being made:
    as well as connections being made to lhr14s21-in-f7.1e100.net:
    which http://66.161.36.140 suggests resolves to a Google IP address block.
    I'm using Safari Version 6.0.4 (8536.29.13) on Mac OS 10.8.3.

  • Returned check charge for 2 out of 3 in triple play?

    I have triple play (phone, cable and internet) conveniently lumped into a single package. For some reason, when I went to pay my account, the transaction "bounced" causing a fee to be applied to each of the following items: phone and cable. In addition, a returned check fee was initiated. This seems odd to me because I didn't write a check. Secondly, I would assume the fee would be overall (to the entire bundle) rather than processed against two of three packages. In other words, 10 dollar returned check fee to phone and 10 dollar returned check fee to cable. Obviously, Verizon wants to make as much money as they can. However, this seems like double dipping especially when they promote the heck out of triple play package. In other words, I wouldn't even see two fee's if I didn't have Phone service. I kept phone service just to make them happy. I don't use it! Now, i'm tempted to cancel my phone service alltogether to prevent this from happening. Anyway, I just wanted to know if this was a mistake or not on their part. Any help appreciated! 

    Hi ewest413,
    Just a friendly reminder, this is a forum where users help other users. It looks like your issue may require a Verizon representative to review your account details. Please visit our Support page for a variety of ways to contact Verizon, including “Ask Verizon,” our virtual chat agent, and customer support phone numbers.

  • How to turn off Check Out prompt in RH7 for VSS version control.

    Using RH7 HTML, and VSS version control. Have been using without problem for 2 years. Now I had to get a new computer
    set up, VSS seems to be correctly set up with RoboHelp, and asks to 'get latest' when I open a project, in the usual way.
    However, each time I try to edit a topic in RH now, I am prompted to check out the topic.This should happen automatically. the RH tip that displays says:
    "To turn off prompts when performing version control tasks manually, clear the option on the version control tab. Files are then checked out automatically.
    Note: Files not selected in the list cannot be checked out."
    this is unclear - there IS no version control tab, and which option are they saying to clear? there is a version control toolbar, and File>Version Control menu, neither of which has a 'prompt checkout' option.
    I need not to check out manually every time!

    Use the Tools > Options menu. There should be a "Version Control" tab in that dialog box.

  • A compare SSIS package checked out with TFS version in VS 2012 no longer shows messagebox 'The files are identical'

    Hello,
    Recently I have had started work on a development system that has VS 2012 and SQL Server Data Tools For VS2012. One thing that annoys me is the fact that a source comparison between a checked out package and the version stored in TFS
    no longer displays the message 'The files are identical', but instead opens the text editor with 2 panes for both sources as if there were differences, with sliders at the right side that do not show any differences (everything in B&W of course). A simple
    message like we had in VS2008 'The files are identical' would suffice to me. On the other hand when you check in the files with VS 2012 and they had not changed then the source control system warns that it did not make any changes since the files
    were identical. Why did the VS 2012 team fix something that worked ? Is there some advantage that I am missing?
    Jan D'Hondt - Database and .NET development

    I did not see such an option, I asked around, appears nobody knows, but I admit there could be a way.
    I still suggest opening an MS Connect so somebody from the development team would respond.
    Arthur My Blog

Maybe you are looking for

  • Crystal report 13.0.2 document.ExportToStream html40 file not found issue

    when export to html, it seems like the html file is exported suessfully but when it is reading the file back, it said the file is not found. but by opening up the temp folder, the file is there but with the .html extension instead of the reported mis

  • IPhoto 6.0.5 crashing

    I just installed iPhoto 6.0.5 and now it is crashing when I try to go full screen or change size of my view of photos. I did calibrate my monitor after I installed it, but nothing else has changed (other than the other Apple updates: security, iweb,

  • Why does the empty path constant look like an anchor?

    Okay, it's a silly question... but a friend asked and I really have no idea. Anyone?

  • Is there anyway to convert a .lit to a .pdf to read on the ibook?

    I downloaded a couple of eBooks but they all came in a .lit file and I was wondering if there is anyway to convert it so I can read it in my iBook? Thanks!

  • MDT 2012 Format & Partition

    Question is this. Already using Microsoft Deployment Toolikt, but I can not solve one problem. Have a client computer. It has one hard drive, which is divided into 2 partitions (C, D). In C of course is a system, the disk D - all user data. So how to