November Happy Hour will be moved to Thursday December 5th.

Anders Hattestad
Jan 7, 2015
  2532
(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
Optimizely SaaS CMS + Coveo Search Page

Short on time but need a listing feature with filters, pagination, and sorting? Create a fully functional Coveo-powered search page driven by data...

Damian Smutek | Nov 21, 2024 | Syndicated blog

Optimizely SaaS CMS DAM Picker (Interim)

Simplify your Optimizely SaaS CMS workflow with the Interim DAM Picker Chrome extension. Seamlessly integrate your DAM system, streamlining asset...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Optimizely CMS Roadmap

Explore Optimizely CMS's latest roadmap, packed with developer-focused updates. From SaaS speed to Visual Builder enhancements, developer tooling...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Set Default Culture in Optimizely CMS 12

Take control over culture-specific operations like date and time formatting.

Tomas Hensrud Gulla | Nov 15, 2024 | Syndicated blog

I'm running Optimizely CMS on .NET 9!

It works 🎉

Tomas Hensrud Gulla | Nov 12, 2024 | Syndicated blog

Recraft's image generation with AI-Assistant for Optimizely

Recraft V3 model is outperforming all other models in the image generation space and we are happy to share: Recraft's new model is now available fo...

Luc Gosso (MVP) | Nov 8, 2024 | Syndicated blog