Search DXM Forum
I want to change the source of the autocomplete words. It is searching and autocomplete from all content. But I want to get from a specific input field.
Thank you, ferdinandLugo. I'm using "crownpeak.searchg2.autocomplete-1.0.2.js" this library to autocomplete the keyword field results. It is parsing all value in the SearchG2 Json file. But I just want to parse only in a field like "custom_s_tag_name". Screenshot; https://pasteboard.co/IhFlP95.png
There isn't a way to so this with the supplied Search G2 Autocomplete SDK because the underlying implementation is just using a straight forward query search (q=...) against the collection. These searches will only search the default 'title' and 'content' fields as there isn't any field specifier.
You have a couple of options: