{"id":2532,"date":"2022-08-30T15:25:39","date_gmt":"2022-08-30T15:25:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/29\/alternative-to-wds-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:39","modified_gmt":"2022-08-30T15:25:39","slug":"alternative-to-wds-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/alternative-to-wds-collection-of-common-programming-errors\/","title":{"rendered":"Alternative to WDS?-Collection of common programming errors"},"content":{"rendered":"<p>Hello,<\/p>\n<p>We\u00a0are a Microsoft\u00a0Partner\u00a0and have\u00a0a long-standing\u00a0application that heavily relies on file searches.\u00a0\u00a0We are currently\u00a0attempting to update this app\u00a0for Windows Vista and Office 2007.\u00a0 In previous versions of our app, we used the Office FileSearch object whenever we needed to search for specific files based on text within the files.\u00a0 Upon beginning development of the updated version, we discovered that the FileSearch object has been &#8220;hidden&#8221; in Office 2007 and can no longer be used in VBA or Office automation to do text searches.\u00a0 We have started to develop a solution that uses WDS, but we have a major concern:\u00a0 our application is CPU-intensive\u00a0and runs on the PC at all times, doing intense file I\/O activity.\u00a0 It seems that WDS will only index when the CPU is in a low state of activity.\u00a0 That will never happen on the PC on which our app is running &#8212; so I can only assume that the index will always be woefully incomplete, and our searches will consequently be inaccurate.<\/p>\n<p>Are my assumptions correct?\u00a0 Or is there a way to use WDS successfully with such an application?\u00a0 If not, what are our alternatives?<\/p>\n<p>Thanks,<\/p>\n<p>Marcia<\/p>\n<ol>\n<li>\n<p>You can disable the backoff feature by setting the following registry DWORD value to 1:<\/p>\n<p>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Search\\Gathering Manager\\DisableBackoff<\/p>\n<\/li>\n<li>\n<p>How will that affect performance (of the PC overall, of our app, and of WDS)?\u00a0 Won&#8217;t everything slow down as a result?<\/p>\n<\/li>\n<li>During intial indexing it may slow down the computer noticeably. But there&#8217;s isn&#8217;t really another option &#8211; you said that the computer is constantly using CPU. We normally want to make sure the indexer stays out of the user&#8217;s way, so we wouldn&#8217;t index during a time of high CPU utilization. If you want to index anyway you can set the registry value I mentioned. I would give it\u00a0a\u00a0try without the change and see whether the constant CPU utilization is too high for indexing to happen. You never know until you try. But with all that said, even if you do turn off the backoff feature you probably will only see noticeable slowdowns during initial indexing. Once the indexer is done crawling all data sources the first time, keeping it up to date generally doesn&#8217;t use more than negligible amounts of CPU at a time and I doubt you would notice it.<\/li>\n<li>\n<p>OK, thanks, Ari.\u00a0 We will try it both ways and see how it goes.<\/p>\n<p>Thank you so much for your help!<\/p>\n<p>Marcia<\/p>\n<\/li>\n<li>\n<p>Ari,<\/p>\n<p>I just tried to change the registry key value for DisableBackoff and received the following message:<\/p>\n<p>Cannot Edit DisableBackoff:\u00a0 Error writing the value&#8217;s new contents.<\/p>\n<p>I am using Regedit to make this change under Administrator privileges.\u00a0 Is there another method I should be using to edit this key?<\/p>\n<p>Thanks,<\/p>\n<p>Marcia<\/p>\n<\/li>\n<li>\n<p>Are you running regedit as administrator? You have to right-click on it and select &#8220;Run as Admininstrator&#8221;<\/p>\n<\/li>\n<li>\n<p>Yes, I did select &#8220;Run As Administrator&#8221;, and it is still giving me that error.<\/p>\n<\/li>\n<li>In regedit, you need to take ownership of the key, then enable writing to this value. This is found under the &#8220;Permissions&#8230;&#8221; context menu for the reg key.<\/li>\n<li>\n<p>Eric,<\/p>\n<p>I right-clicked on the Gathering Manager key in regedit (running under Administrator privileges), selected &#8220;Permissions&#8221;, and changed the permissions for Administrators to &#8220;Full Control&#8221;.\u00a0 When I hit Apply, I get this error:<\/p>\n<blockquote>\n<p>Unable to save permission changes on Gathering Manager. Access is denied.<\/p>\n<\/blockquote>\n<p>I tried changing the scope to &#8220;Subkeys only&#8221;, but received the same error.<\/p>\n<p>How can I get permissions to change this key?<\/p>\n<p>Thanks,<\/p>\n<p>Marcia<\/p>\n<\/li>\n<li>\n<p>You need to take ownership of the key. On the Permissions screen, click the Advanced button, then the Owners tab. Change the owner of the key to Administrators (You&#8217;ll obviously need to be logged on as an administrator to do this). Now you should be able to change the permissions on the key.<\/p>\n<\/li>\n<li>\n<p>Eric,<\/p>\n<p>Thanks for explaining that.\u00a0 I had misunderstood the first time.<\/p>\n<p>I have done as you instructed and was able to change the DisableBackoff key.<\/p>\n<p>Thanks!<\/p>\n<p>Marcia<\/p>\n<\/li>\n<li>\n<p>Thanks so much, the Backoff &#8220;feature&#8221; was annoying as ____!!\u00a0 When I tell my computer to do something (reindex) by God I want it done NOW, not when Windows decides it&#8217;s convenient for me.<\/p>\n<\/li>\n<li>\n<blockquote>\n<p>You can disable the backoff feature by setting the following registry DWORD value to 1:<\/p>\n<p>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Search\\Gathering Manager\\DisableBackoff<\/p>\n<\/blockquote>\n<p>On my machine the DWORD value is already set to Hex 1, and the indexing is still crawling at a snail&#8217;s pase.\u00a0 Any alternatives?\u00a0 I need search very badly for my work.ThanksBerj<\/li>\n<li>I have the same problem even though my Backoff DWORD value was always &#8220;Hex 1&#8221;.\u00a0 It seems this problem is pervasive and Microsoft has done nothing about it since early 2007!!!\u00a0 Like albatrozz I want indexing done\u00a0NOW not in 3 days.Any alternative programs to WDS 4.0?\u00a0 I need searching real bad, and WDS\u00a0is hindering my work.ThanksBerj<\/li>\n<li>\n<p>I have just solved my indexing problems by using\u00a0http:\/\/www.ramdisk.tk\/\u00a0\u00a0I created a 2GB ramdisk and moved my search index to the ram drive \u00a0http:\/\/mintywhite.com\/vista\/vmaintenance\/performance-boost-move-search-index-to-another-physical-drive\/\u00a0\u00a0<\/p>\n<p>It is important to ensure the ramdisk is NTFS,<\/p>\n<p>secondly you need to set up the permissions for the ramdisk to be identical to the default location C:\\ProgramData\\Microsoft\u00a0<\/p>\n<p>Thirdly \u00a0make sure that the ramdisk is NOT using compression.<\/p>\n<p>I found that the indexing zips along like a cat on fire-cracker night!<\/p>\n<p>The ramdisk software even saves between boots&#8230;&#8230; Even if your computer crashes it is only an index and reloading the last index and continuing from there??? \u00a0well who cares!<\/p>\n<p>Make sure you donate to www.ramdisk.tk \u00a0cause the software ROCKS!<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-29 17:31:55. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Hello, We\u00a0are a Microsoft\u00a0Partner\u00a0and have\u00a0a long-standing\u00a0application that heavily relies on file searches.\u00a0\u00a0We are currently\u00a0attempting to update this app\u00a0for Windows Vista and Office 2007.\u00a0 In previous versions of our app, we used the Office FileSearch object whenever we needed to search for specific files based on text within the files.\u00a0 Upon beginning development of the updated [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2532","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2532"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2532\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}