Questions tagged [windows-search]

Windows Search(former Indexing Service, up to Windows Vista), also known as Windows Desktop Search, is the Windows service that indexes files on the user's hard drive.

107 questions
0
votes
1 answer

Is there a way to create my own index with Windows Search?

I have an application which store files (mostly Office documents) in various distant locations. I want my users to be able to search for these files based on some criteria on its own machine. I though I could use Windows Search to create an index.…
Martin
  • 39,309
  • 62
  • 192
  • 278
0
votes
0 answers

%UserName% in Windows File Explorer Search Box does not work

I have users that have folders on a network drive that have their username part of the folder name. How can I modify this search to work? kind:=folder %UserName% Note: Below works, but i need to be able to use %username% to work. kind:=folder jsmith…
0
votes
1 answer

How can I properly sanitize the search string in C# without reducing the search performance?

I need to sanitize the user's input string because I use the string later in an OLEDB Query to index a document repository to find matching files, descriptions, etc. The problem is that I cannot use strings that contain special characters in the…
Vin Shahrdar
  • 1,151
  • 1
  • 12
  • 30
0
votes
0 answers

Sum results of Windows Search query

I am trying to use PowerShell and Windows Search to get some statistics of my disk usage. This is what I came up for so now: $sql = "SELECT System.FileExtension, System.Size FROM SYSTEMINDEX WHERE DIRECTORY = 'C:\Users\...\Documents' AND…
mokum
  • 25
  • 5
0
votes
1 answer

Using C# to perform common desktop search via Search Protocol

I'm trying to use C# to trigger windows common desktop search according to windows search protocol. It is very simple code to implement this. static void Main(string[] args) { const string searchQuery = "search:"; …
Man Shen
  • 401
  • 2
  • 16
0
votes
1 answer

Windows Search query c#

I am trying to search for files containing a phrase or their name contains a phrase. I achieved to get a query which sometimes has results but I do not get it when and why the results are returned. This is the query I am using: SELECT TOP 5…
AdelPoint
  • 115
  • 4
0
votes
1 answer

Windows Search, SQL query, local/remote

I've installed Windows Search Service feature on Windows 2012. Now I'm testing form which should send query from Windows 2008 to Windows 2012 catalog. Windows 2008 has the Windows Search service installed too to get db driver…
0
votes
0 answers

Windows Search Service : Search Partial Content

I am trying to search in content of the documents uploaded into a folder. It is working fine if i am giving a word to search. It is not working if i m giving part of work. e.g. If I search with Microsoft, It lists documents. but if i search with…
arya009
  • 45
  • 1
  • 9
0
votes
1 answer

Starting application via Windows Search gives different result for Path.GetFullPath(...)

I have some strange issue with using Path.GetFullPath method in C#. On startup of my application it searches for some folders and retrieving the paths via the GetFullPath method. Everything works fine if I start the application via IDE or via double…
Tintenfiisch
  • 360
  • 5
  • 19
0
votes
1 answer

Document Indexing Asp.net

I am tasked with indexing a large number of documents (allowing for full-text search) and then searching this index using ASP.net I am using a Windows Server 2012 environment. I have done some reading up but I'm still not sure what the indexing…
jjc99
  • 3,559
  • 4
  • 22
  • 21
0
votes
1 answer

Does WIndows Search(Win 2008R2)/Indexing Service(Win2003) has any impact on Directory.GetFiles(searchPattern, SearchOption.AllDirectories) method?

We are having a strange issue with Directory.GetFiles method trying search for a Word Document from a UNC Folder Share (NTFS Disk) on a Win2008R2 VMServer. The share contain over 10K Files in the Parent Folder and 75K Files in a SubDirectory. It was…
iCode
  • 3
  • 1
0
votes
2 answers

Searching just for filenames

I want to search for only filenames in "Windows Search API" by visual c++ . and i don't want to search for contents because its time consuming. does "windows search API" have this option ?
Aliasghar Yaghoobzadeh
  • 1,881
  • 2
  • 12
  • 10
0
votes
1 answer

Delete similarly named files in multiple directories

I have a server directory (windows) that contains somewhere around 25000 files in 3000 folders. At some point in the past a program has gone through and added a file called .xconfig to almost all of the directories. I'd like to delete these files…
0
votes
1 answer

Query files from SQL database and display the result as Windows Search

Warning: novice programmer here. I got SQL database with file paths based on different criteria stored in it. And I want to display the files associated with the desired criteria as a Windows Search result. Any guidelines on how to achieve this ?…
Iliyan Kulishev
0
votes
1 answer

Suggestions for Searching Document Content- Is Windows Search Any Good? Simple MySQL?

I am writing a web script for a small online documents management company that wants to allow users to quickly search the content of their files online. While many accounts are very small (under 100 2MB files), there's a handful that have 1,000,000…
SilentSteel
  • 2,344
  • 1
  • 28
  • 28