raspopov / WindowsSearchManager

Utility to manage a Windows Search™ internals.
https://www.cherubicsoft.com/projects/search-manager/
GNU General Public License v3.0
15 stars 3 forks source link

properties only, or properties and content #1

Open vipinbeni opened 6 months ago

vipinbeni commented 6 months ago

Can we implement advance setting file type using this api searchapi kindly suggest .

raspopov commented 6 months ago

Can you explain how it would be? This utility is only a display of search internals.

vipinbeni commented 6 months ago

Hi @raspopov , Thanks for your kind response ,Actually i want to add new extension and want to change the option "How should this file be indexed" filter for any file type from "properties only" to "properties and content" as my requirement is to index all file content , as i am searching within content of all files in my project .

So kindly suggest how can i implement "Add new extension" and change "How should this file be indexed" to "properties and content" for all file type advance options .

raspopov commented 6 months ago

I'm not quite sure I understand. Are you looking to do it programmatically? Otherwise, I'm afraid I don't understand why it can't be done in the standard way as in the picture above.

vipinbeni commented 6 months ago

yes i need to do it programmatically with windows searchapi .

raspopov commented 6 months ago

I think to enable content filtering, you need to set the default value of the HKEY_CLASSES_ROOT\.ext\PersistentHandler registry key to the filter CLSID, for example {5E941D80-BF96-11CD-B579-08002B30BFEB} for a simple text content filter (Windows 10 "Plain Text persistent handler"), or remove the key entirely to revert to properties only.