Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Search and Promote autocomplete feature with collections

Avatar

Avatar
Validate 10
Level 3
kishore_polsani
Level 3

Likes

11 likes

Total Posts

77 posts

Correct Reply

7 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 3
kishore_polsani
Level 3

Likes

11 likes

Total Posts

77 posts

Correct Reply

7 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
kishore_polsani
Level 3

21-05-2020

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

Search and Promote

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

21-05-2020

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 !

Answers (0)