question

AntoineGrier-8442 avatar image
0 Votes"
AntoineGrier-8442 asked SamWu-MSFT commented

sample code or API to create a search page in IIS to use Windows Search (formely Index Service)

Hi All, I'm not a coder so forgive me in advance if i use some incorrect terms here.... I have a task where I am trying to find sample code or API for creating a search page that will use the Windows Search Service on a windows 2012 server. I understand prior to Win2012, this was called indexing service and a web interface could be created to call the Index engine through HTML. I've been searching with little luck finding an example of this for win2012 windows search so any help would be greatly appreciated.

dotnet-aspnet-core-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered SamWu-MSFT commented

Hi @AntoineGrier-8442

Here is a link about Windows Search Code Samples you can use as a reference: Windows Search Code Samples.

And here is a link about how to enable the Windows Search service in Windows Server 2012: How to enable the Windows Search service in Windows Server 2012.


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi SamWu,

Thanks for the response, this looks like it has some viable options on it particularly DSearch and WSFormScript, but they require a bit more coding and work with the HTML to complete. My lead said that back on 2008 with Indexing service there was a rather simple way

What he stated: I just need to make a web interface for the index search. Back with Index Server, I just needed to make a call to the Index engine in the HTML - it was really simple. I think they changed the engine API when it became Windows Search, so I just need the new sample code. It probably comes as an .htm file that you can drop in the wwwroot and test

from the link you provided it appears it is no longer that simple is that a correct assumption or is there a .HTML template out there I just have not come across yet?

thank you

0 Votes 0 ·

@AntoineGrier-8442 If you want to use html code, then this is not a problem with iis.

0 Votes 0 ·