We have below setup,
1. meta collection and profile
2. child web collection and here we crawling multiple domains.
Search integrated with the website and pulling only this website domain data by using Gscopes (gscopes.cfg)
In Autocomplete we sending the meta collection name and profile. The profile we created for each domain. But in the autocomplete, suggestions are data displaying from all domains instead of particular profile based domain data.
Below our auto-complete JS script
jQuery("#fb-search-input").autocompletion({
datasets: {
organic: {
collection: funnelbackCollectionAutocomplete,
profile: funnelbackProfile,
program: funnelbackUrl + '/s/suggest.json',
format: 'extended',
alpha: '0.5',
show: '10',
sort: '0',
group: true
},
},
typeahead: {
hint: true,
events: {
select: function (event, suggestion) {
jQuery("#searchFormSubmit").trigger("click");
event.preventDefault(); // Cancel the native event
event.stopPropagation();
}
}
},
length: 3
});