Try our conversational search powered by Generative AI!

Anders Hattestad
Jan 7, 2015
  2242
(2 votes)

Quick tip when Search is not working

I had a search page that worked locally but not on my test server. The strange thing was that the when I access this path locally I got the result

http://host/IndexingService/IndexingService.svc/search/?q=(EPISERVER_SEARCH_DEFAULT%3a(test))+AND+((EPISERVER_SEARCH_TYPE%3a(EPiServer.Core.PageData%2cEPiServer))+OR+(EPISERVER_SEARCH_TYPE%3a(EPiServer.Core.PageData%2cEPiServer)))&namedindexes=&offset=0&limit=30&format=xml&accesskey=local

but on the test server I got the 404 page. So after some checking I found out that the default handlers for webserver was different, and the solution was to change the web.config to something like this:

<location path="IndexingService/IndexingService.svc">
  <system.web>
    <httpRuntime maxQueryStringLength="65536" />
  </system.web>
  <system.webServer>
    <handlers>
      <clear/>
      <add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxQueryString="65536" />
      </requestFiltering>
    </security>
  </system.webServer>
</location>

Jan 07, 2015

Comments

Please login to comment.
Latest blogs
Azure AI Language – Extractive Summarisation in Optimizely CMS

In this article, I demonstrate how extractive summarisation, provided by the Azure AI Language platform, can be leveraged to produce a set of summa...

Anil Patel | Apr 26, 2024 | Syndicated blog

Optimizely Unit Testing Using CmsContentScaffolding Package

Introduction Unit tests shouldn't be created just for business logic, but also for the content and rules defined for content creation (available...

MilosR | Apr 26, 2024

Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024