Hi all,I'm enabling EPiServer search in an existing website. After setting it up and verifying that it works as expected in localhost, when I deploy to Azure it doesn't.
I've configured the web.config file in Azure to point to the correct domain when indexing like so:
<add name="serviceName" baseUri="http://www.correctdomain.com/IndexingService/IndexingService.svc" accessKey="local" />
<add name="local" description="local" allowLocal="true" readonly="false" />
<add name="default" directoryPath="[appDataPath]\Index" readonly="false" />
After running the index job on the site, no Index folder and no index is created in my Azure filesystem.When trying to search on the edit interface above the site tree, no results are found as you'd expect.
Am I missing something to make this work?
Maybe the [appDataPath] cannot be found/is not set?
Thanks Jeroen, I've checked App_Data exists using "AppService Editor", then manually created the "Index" child folder and tried a few values with no success:
1 - App_Data\Index
2 - \App_Data\Index
3 - ~App_Data\Index
4 - ~\App_Data\Index
Looking at the logs, I found 404s when it looks for "IndexingService.svc". Strangelly the domain name I set on web.config was replaced with the Azure default AppService one...
Still no luck
First of all, for cloud sites the official recommendation is to use Episerver Find instead of Episerver Search. But if you have only 1 web app instance, or if you make a dedicated indexing/search instance, you can proceed anyway.
Have you found any clues from the logs? Or tried connecting directly to the URL.
It could be that you need to change the baseUrl to a HTTPS URL in production.