Anders Hattestad
Jan 7, 2015
  2578
(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
The missing globe can finally be installed as a nuget package!

Do you feel like you're dying a little bit every time you need to click "Options" and then "View on Website"? Do you also miss the old "Globe" in...

Tomas Hensrud Gulla | Feb 14, 2025 | Syndicated blog

Cloudflare Edge Logs

Optimizely is introducing the ability to access Cloudflare's edge logs, which gives access to some information previously unavailable except throug...

Bob Davidson | Feb 14, 2025 | Syndicated blog

Comerce Connect calatog caching settings

A critical aspect of Commerce Connect is the caching mechanism for the product catalog, which enhances performance by reducing database load and...

K Khan | Feb 14, 2025

CMP DAM asset sync to Optimizely Graph self service

The CMP DAM integration in CMS introduced support for querying Optimizly Graph (EPiServer.Cms.WelcomeIntegration.Graph 2.0.0) for metadata such as...

Robert Svallin | Feb 13, 2025