コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Search and Promote autocomplete feature with collections

Avatar

Level 4

Hi,

I am trying to fetch auto complete results from search and promote using below URL. But this is searching entire S&P account. Do we have any query parameter like sp_k to get auto complete results from specific collection?

 

https://content.atomz.com/autocomplete/sp**/**/**/**?query=test%2C&beginning=1&max_results=10

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi 

 

I don't see anything for auto complete to restrict within collections as Search and Promote only storing the list words while doing index based on the fields we asked to index. 

Screen Shot 2020-05-21 at 9.20.32 AM.png

 

And in the response it is returning only the words and I think filtering is not possible

 

acObj.generateRequest = function(q) {return "?query=" + q + "&max_results=" + acObj.maxResultsDisplayed + "&beginning=1";};

 You can check below link to see which has details of customizing auto-complete results.

 

https://yui.github.io/yui2/docs/yui_2.9.0_full/autocomplete/

 

Hope this helps !

元の投稿で解決策を見る

1 返信

Avatar

正解者
Community Advisor

Hi 

 

I don't see anything for auto complete to restrict within collections as Search and Promote only storing the list words while doing index based on the fields we asked to index. 

Screen Shot 2020-05-21 at 9.20.32 AM.png

 

And in the response it is returning only the words and I think filtering is not possible

 

acObj.generateRequest = function(q) {return "?query=" + q + "&max_results=" + acObj.maxResultsDisplayed + "&beginning=1";};

 You can check below link to see which has details of customizing auto-complete results.

 

https://yui.github.io/yui2/docs/yui_2.9.0_full/autocomplete/

 

Hope this helps !