SaaS CMS has officially launched! Learn more now.

EpiServer Search (not find)



There have been a lot of issues with episerver search (not find). I have done a lot of searching, and debugging.

Using a similar setup as below but:


But the search returns nothing.

Rebuilding index through the scheduled job does nothing.

Same as using the real backoffice admin tool to rebuild the index.

I have even used the 

 IndexingService.DocumentAdding += IndexingServiceOnDocumentAdding;

To build custom content to search for.

Any ideas?

Edited, Apr 08, 2020 8:45

The old search is based upon lucence so it will be creating indexes in your app data folder where you should see it create a load of files. You can use Luke which is a lucene viewer to check what's in the index to see if the index itself is being loaded you just point it to the search folder.

Also make sure everything is configured as per which also requires having HTTP Activation feature turned on in windows IIS features.

Edited, Apr 08, 2020 8:50
Carl S - Apr 08, 2020 9:10
It seems to be correctly configured per your link. I have to check with clients IT on the HTTP Activation feature.
Scott Reed - Apr 08, 2020 9:17
One other point, and bear in mind I last used this about 5 years ago. I believe if there's problems with the indexes you should delete the index folders and restart the site then trigger the reindex, as far as I remember deleting any existing index folders that have had an error can sometimes fix an issue. So if you can do that it's worth trying, as I say it's been a while
Carl S - Apr 09, 2020 6:50
Ok will try that locally first.

Also a tip, if you're not on DXP which I assume from the fact your not using Search & Navigation (formally Find) and you are still load balancing you want to configure a single box to be the search service to point all load balanced instance to, otherwise you get differging results.

Apr 08, 2020 8:53
Carl S - Apr 08, 2020 9:12
Yep have done that.

Ok big clue. The custom search terms which I've added through:

IndexingService.DocumentAdding += IndexingServiceOnDocumentAdding;

Does not seem to work at all. But I'm pretty sure this have worked before.

Apr 09, 2020 11:16

Another big clue, by using this:

Svc is registered on the server (web.config) but still when I go to "httts://" I get 404, not "enpoint not found" as expected.

Comparing web.config to development (which seems to work). I see no real differences and the documentation is followed to the letter, at least in my opinion.

      <remove name="svc-Integrated-4.0"/>
      <add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

Http activation is installed. I cannot figure out what's wrong. Any ideas?


2020-04-22 00:00:10,670 [196] ERROR EPiServer.Search.Internal.RequestHandler: Update batch could not be sent to service uri ''
System.Net.WebException: The remote server returned an error: (404) Not Found.

So it definitly have something to do with the svc registration, have even run the "ServiceModelReg.exe -i from C:\Windows\Microsoft.NET\Framework\v3.0\Window".

Edited, Apr 22, 2020 9:30

OK another clue. Removing this from web.config actually makes the search work as it should.

<security mode="Transport">
   <ansport clientCredentialType="None"></transport>

In eventlog it seems to call with http .. not https... Why?

(and yes, the address to the webservice is https)

 < active="true" dequeuePageSize="5">
    <namedIndexingServices defaultService="serviceName">
        <add name="serviceName" baseUri="" accessKey="local" />
    <searchResultFilter defaultInclude="true">
      <providers />
Edited, Apr 23, 2020 6:19
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.