windows-search

Can't query SystemIndex on my own machine when I specify the machine name

会有一股神秘感。 提交于 2020-01-03 14:45:12
问题 I'm trying to write a simple program that would connect to remote machines and query the indexing status. Here's the code that does it on my machine. This works OK. using System; using Microsoft.Search.Interop; namespace IndexStatus { class Program { static void Main(string[] args) { CSearchManager manager = new CSearchManager(); CSearchCatalogManager catalogManager = manager.GetCatalog("SystemIndex"); _CatalogPausedReason pReason; _CatalogStatus pStatus; Console.WriteLine(catalogManager

Can't query SystemIndex on my own machine when I specify the machine name

烈酒焚心 提交于 2020-01-03 14:45:07
问题 I'm trying to write a simple program that would connect to remote machines and query the indexing status. Here's the code that does it on my machine. This works OK. using System; using Microsoft.Search.Interop; namespace IndexStatus { class Program { static void Main(string[] args) { CSearchManager manager = new CSearchManager(); CSearchCatalogManager catalogManager = manager.GetCatalog("SystemIndex"); _CatalogPausedReason pReason; _CatalogStatus pStatus; Console.WriteLine(catalogManager

Can I register/install Search.CollatorDSO.1 manually

删除回忆录丶 提交于 2019-12-31 00:43:08
问题 I'm currently trying to search through some indexed files using the windows.search service. My problem is that windows search cannot be installed on the web server because its a 'web edition'. Error message received is: Search.CollatorDSO.1 provider is not registered on the local machine However the index that I'm searching is on another server which does have windows search installed and I'm querying it remotely. This was all working fine in development but only because I have windows.search

Getting context around search string in results from Windows Search

天涯浪子 提交于 2019-12-22 09:27:00
问题 I have code in my project that uses Windows Search to look through file contents for a string I provide. SELECT System.ItemName, System.ItemType, System.Search.Rank FROM SYSTEMINDEX WHERE SCOPE='file:C:/NiftyFolder' AND CONTAINS(System.Search.Contents,'"SEARCH STRING"') I get the proper search results but I'd like to go a step further and get the context around my search string. I'm showing the search results on a webpage and ideally, I'd like something similar to what you get in Windows when

How to use Windows Search Service in c#

♀尐吖头ヾ 提交于 2019-12-19 08:12:31
问题 I'm working on an application, an user can search for files or folders either on the local computer or on the network. I am using DirectoryInfo.GetDirecotories(). (a) But I also want to add the functionality that windows 7 uses for searching, I believe that uses indexing. I also saw "Windows Searching Service" on msdn, but I'm not sure which way is best, querying the indexed catalog or using the search service, any suggestions ? (b) I was wondering if any one can give me a small example in C#

Query Windows Search from Java

最后都变了- 提交于 2019-12-17 16:47:16
问题 I would like to get to query Windows Vista Search service directly ( or indirectly ) from Java. I know it is possible to query using the search-ms: protocol, but I would like to consume the result within the app. I have found good information in the Windows Search API but none related to Java. I would mark as accepted the answer that provides useful and definitive information on how to achieve this. Thanks in advance. EDIT Does anyone have a JACOB sample, before I can mark this as accepted? :

Getting wrong value for variant_date_to_timestamp() function

為{幸葍}努か 提交于 2019-12-13 01:20:30
问题 In relation with this question, I'm getting a wrong value for the the modified date when querying the windows ADODB connection for indexing files. This is the line or the query: $recordset - > Open("SELECT System.ItemName, System.DateModified FROM SYSTEMINDEX WHERE DIRECTORY='file:C:/xxxx/' AND CONTAINS('xxxx')", $conn); I've getting good results on localhost (php 5.5.6), but not in other servers (php 5.5.8). I'm getting the wrong timestamp value and therefore it converts it into a wrong date

Windows Search 4 Query - Delphi Example

别来无恙 提交于 2019-12-08 07:51:13
问题 The following web page describes querying Windows Search programmatically: http://msdn.microsoft.com/en-us/library/aa965362.aspx Does anyone have examples using Delphi/Pascal? Examples I have in mind are fairly simple: Search for certain file types. Search for specific text within files. Limit these above searches to a certain path. 回答1: Here's one I did a while ago - be aware that it may be out of date: const GENERAL_COLUMNS = '"System.Itemname", "System.Size", "System.DateCreated", "System

How to add a location to windows 7/8 search index using batch or vbscript?

江枫思渺然 提交于 2019-12-07 04:56:12
问题 I'm trying to add a location (scope) to my windows 8 search index programmatically. After some googling, I found this code from [here]: Set objISAdm = CreateObject("Microsoft.ISAdm") Set objCatalog = objISAdm. GetCatalogByName("MyCatatlog") Set objScope= objCatalog.AddScope("C:\myfiles",False) objScope.Alias = "MyCatalogScope" Unfortunately a 800A01AD error prompts suggesting object 'Microsoft.ISAdm' cannot be created. With some further digging, it seems the above code doesn't work with the

How to add folder into windows indexing list with windows search api

亡梦爱人 提交于 2019-12-06 03:18:02
问题 In Indexing Options, there’s a list of locations in ‘Index these locations’, is there a way to add a folder which created from my app into the list through c#? 回答1: I have found a solution, anyone who want to let their app folder to support windows search in C# can do like below: Download Windows Search API (http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=7388) Import Micosoft.Search.Interop namespace. write the code Uri path = new Uri(location); string indexingPath =