Try our conversational search powered by Generative AI!

Anders Hattestad
Jan 7, 2015
  2238
(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
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

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog