Compartilhar via


A nice workaround to enhance searching on 64 bit Windows with OneNote

As those of you who use 64 bit versions of Windows with OneNote know, there is a limitation placed on search results. If you use Windows Desktop Search (any version) to find OneNote files, the results are found as expected. The problem is that they are not clickable from the search window. If you try to open one of the found files, nothing happens.

A reader from New Zealand (go All Blacks!) sent me an email with a workaround he discovered. It involves modifying the registry, but when done, you will be able to click the results.

Here are the registry keys to edit (and as always, back up before modifying the registry - or just get ready to use System Restore):

-----------------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{5858A72C-C2B4-4DD7-B2BF-B76DB1BD9F6C}]
@="Microsoft Office OneNote Namespace Extension for Windows Desktop Search"

[HKEY_CLASSES_ROOT\CLSID\{5858A72C-C2B4-4DD7-B2BF-B76DB1BD9F6C}\InprocServer32]
@="C:\\PROGRAM
FILES\\MICROSOFT OFFICE\\Office12\\ONFILTER.DLL"
"ThreadingModel"="Both"

[HKEY_CLASSES_ROOT\CLSID\{5858A72C-C2B4-4DD7-B2BF-B76DB1BD9F6C}\ProgID]
@="OneIndex.ShellFolder.1"

[HKEY_CLASSES_ROOT\CLSID\{5858A72C-C2B4-4DD7-B2BF-B76DB1BD9F6C}\ShellFolder]
"Attributes"=dword:20180000
"WANTSFORPARSING"=""

[HKEY_CLASSES_ROOT\CLSID\{5858A72C-C2B4-4DD7-B2BF-B76DB1BD9F6C}\VersionIndependentProgID]
@="OneIndex.ShellFolder"

------------------

I bold faced that second one since it may need to be changed on your computer. Notice the path - if you installed OneNote or Office somewhere other than the default, this will need to change. And make sure that the path uses the "Program Files" folder, NOT "Program Files (x86)."

To save some time from running using regedit to hand modify these keys, you can copy/paste the information above into notepad, ensure the path is correct, and save as a .REG file (be sure to change the file type dropdown to "All Files.)" Then you can double click that .REG file to add them all at once.

Now when you perform the desktop search, the results will look visibly different - they will have the OneNote icon - and they will be clickable.

Enjoy!

Questions, comments, concerns and criticisms always welcome,

John

Comments

  • Anonymous
    November 18, 2008
    can't MS offer this as a patch?  I am not comfortable making reg edits that come with a "prepare for trouble" warning.

  • Anonymous
    November 24, 2008
    The comment has been removed

  • Anonymous
    November 25, 2008
    Can you double click the .ONE files desktop search finds after a search is completed?  This workaround is designed to make the results clickable. John

  • Anonymous
    January 20, 2009
    thank you, this was the missing part for me. Great tweak.

  • Anonymous
    February 23, 2009
    Great! Worked like a charm! It's a shame Microsoft doesn't give us this solution for THEIR 64-bit OS...!!!

  • Anonymous
    February 23, 2009
    Het heeft niets met BI te maken, maar ik wil dit ergens kwijt, al is het voor mijzelf. Op mijn laptop

  • Anonymous
    August 17, 2009
    Unfortunately the same problem exists for Windows 7 RTM except the registry keys are different so the above fix won't work.

  • Anonymous
    August 19, 2009
    Let me see if I can figure out what the new keys are (or even if they are still working in Win7).

  • Anonymous
    September 04, 2009
    I don't even pretend to understand this, but on my Win7 Enterprise RTM install the onfilter.dll is registered in several CLSIDs: {6D01EC38-83F9-45df-99F0-8A880993928D} {B8D12492-CE0F-40AD-83EA-099A03D493F1} {EDA26AA4-13EE-4304-8115-F7A5AE41D72F} and then the corresponding Wow6432Node CLSIDs: HKEY_CLASSES_ROOTWow6432NodeCLSID{6D01EC38-83F9-45df-99F0-8A880993928D} etc...

  • Anonymous
    September 04, 2009
    Ahh - I see... those are for the file extensions. nvmnd

  • Anonymous
    November 22, 2009
    Hi, did you manage to check to see if the registry edit would work on x64 Windows 7? I have the same issue, but I'd rather not edit the registry until I know that it's not going to bork my system... Thanks

  • Anonymous
    December 01, 2009
    No, have not had time to check.  Just wanted to let you know I'm not ignoring this.

  • Anonymous
    December 02, 2009
    Thanks! I'll keep checking in from time to time. Much appreciated!

  • Anonymous
    December 16, 2009
    Just did it on Win7 Ultimate RC x64, works fine (still astonished that it didn't require a reboot + reindexing! :) )

  • Anonymous
    January 21, 2010
    I notice this problem seems to have resurfaced with OneNote 2010 Beta. Running an installation repair did not help. For Windows 7 Ultimate x64 and Office 2010 Beta, I needed to make the following registry changes, instead of the ones you list:


Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTCLSID{0875DCB6-C686-4243-9432-ADCCF0B9F2D7}] @="Microsoft OneNote Namespace Extension for Windows Desktop Search" [HKEY_CLASSES_ROOTCLSID{0875DCB6-C686-4243-9432-ADCCF0B9F2D7}InprocServer32] @="C:\Program Files\Microsoft Office\Office14\ONFILTER.DLL" "ThreadingModel"="Both" [HKEY_CLASSES_ROOTCLSID{0875DCB6-C686-4243-9432-ADCCF0B9F2D7}ProgID] @="OneIndex.ShellFolder.1" [HKEY_CLASSES_ROOTCLSID{0875DCB6-C686-4243-9432-ADCCF0B9F2D7}ShellFolder] "Attributes"=dword:20180000 "WANTSFORPARSING"="" [HKEY_CLASSES_ROOTCLSID{0875DCB6-C686-4243-9432-ADCCF0B9F2D7}VersionIndependentProgID] @="OneIndex.ShellFolder"

Note that in this case I needed to create ALL of these registry keys. The problem is not that the original keys were pointing to the wrong version of the DLL; the correct keys were simply not created by the installer in this case. My only gripe now is that the "heading" for the search results in the Start menu still reads "oneindex14--(..." followed by a long code. But the search results are at least clickable now.

  • Anonymous
    January 21, 2010
    Aha! I think I fixed the search heading problem, too. I just navigated to %UserProfile%Searches. Inside that folder will be what looks like files under the heading "Search Connector." If you have the full Office 2010 Beta installed, you'll probably have one for "Microsoft Outlook," and then in my case I had one with the long code that begins with "oneindex14." I simply renamed that one to "Microsoft OneNote" like I would rename any other file, and now the search results show up under that heading in the Start menu.

  • Anonymous
    January 23, 2010
    In a free moment I tried this out with Win7 x64 with Onenote 2007, and I can also confirm that it works, as does Neil McAllister's suggestion about the search title. Thanks to everyone - I can't live without my onenote!

  • Anonymous
    February 08, 2010
    Thanks for the help on this.  I followed Neil's advice from his Jan 21 post.  I am not experienced with delicate Registry entries but I think I did it right.  The system is reindexing, 22K entries so far, but there are no OneNote entries at this point in a search where I know OneNote has content.  Maybe I did something wrong??.