I've got a site up and running on Azure using the Umbraco Accelerator, the site runs fine except my site search. I'm hooking into the GatheringNodeData event and adding a new field programmatically that pulls data from different node types and places all of the searchable text into a common field so I can search on that field.
The problem seems to be that each time a web role restarts (could be something else causing this, but this seems to make sense) I lose this field in the index and it only seems to repopulate when I do a manual publish of existing items. I've only been using Umbraco for a few months and this is the first large / complex site I've built.
From looking at the Accelerator code each Web Role has its own index files, I'm also concerned that one may have the correct indexes and the other Web Role not.
Am i doing something wrong? Does anyone have experience of this or knowledge of what could be going wrong?
I am interested to know if you managed to resolve this issue? I have seen this issue myself but I am unsure if it is an Azure specific issue, general load balancing or something else. Also were you using the Azure specific version of Examine or the default one?
Azure, Examine and GatheringNodeData
I've got a site up and running on Azure using the Umbraco Accelerator, the site runs fine except my site search. I'm hooking into the GatheringNodeData event and adding a new field programmatically that pulls data from different node types and places all of the searchable text into a common field so I can search on that field.
The problem seems to be that each time a web role restarts (could be something else causing this, but this seems to make sense) I lose this field in the index and it only seems to repopulate when I do a manual publish of existing items. I've only been using Umbraco for a few months and this is the first large / complex site I've built.
From looking at the Accelerator code each Web Role has its own index files, I'm also concerned that one may have the correct indexes and the other Web Role not.
Am i doing something wrong? Does anyone have experience of this or knowledge of what could be going wrong?
Here's the revelant code:
private const string SearchTextField = "searchText";
Hi Matthew,
I am interested to know if you managed to resolve this issue? I have seen this issue myself but I am unsure if it is an Azure specific issue, general load balancing or something else. Also were you using the Azure specific version of Examine or the default one?
Regards,
Jeavon
is working on a reply...