Setup for Windows Server 2016 and search through C# ASP.NET application RRS feed

  • Question

  • Hi, I have an application displaying files stored in specific folder. I want to add a full-text search to it and I want to use the Windows Search index. I already wrote the c# code, with OLEDB connection but no matter what my programatically search returns empty results even for terms that return files and folders in File Explorer on the same location.

    I suspect I am missing Windows 10? SDK installation on my server but because I am not sure I would not have it installed just for test in my production server. I the OLEDB connection would work without SDK then where to look next to see why my results are always empty?

    My current query is

    SELECT System.ItemName FROM SystemIndex WHERE scope ='file:c:\inetpub\intranet' and FREETEXT('Tratarea')

    Using this search term the File Explorer returns 4 documents.

    Thursday, January 11, 2018 8:44 AM

All replies

  • sorry, begginer's bad

    I had to add the folder to indexed locations.  the file manager search functionality fooled me to believe docs were already indexed

    Thursday, January 11, 2018 5:20 PM