Have you tried adding a filter for the current site?
.Filter(x => x.SiteId().Match("MySiteId"))
The Filter extensions are built on the ITypeSearch interface. Not on the IClient or IStatisticsClient interface.
How can I vote for a multisite autocomple functionality?
Hi Niklas,
I haven't tried this myself but you can supply Tags with the Autocomplete API. See .Autocomplete() and .StatisticsAutocomplete() - it's more obvious there.
Only tag I've used is language but I think there should also be a siteid tag.
Good input dada.
I tested it and first impression is that it is working. This is how the working code looks like:
var result = this.findClient .Statistics() .StatisticsAutocomplete( q, 4, new[] { SiteDefinition.Current.Id.ToString() });
I also have to do this to synch the tracking:
typeSearch = typeSearch .Track(new[] { SiteDefinition.Current.Id.ToString() });
It´s a pity though the GUI doesn´t implement this tag feature. All manually added autocomplete words will apply on all sites in a multisite solution :(
Regards Niklas
Hello,
I´m doing this on a multisite and getting the same result on all sites:
Is there any way or any workaround to separate autocomplete for the sites?
Regards Niklas