Differentiate Pinned Items in jQuery Plugin Autocomplete Search Results


Is there a way to differentiate pinned items in autocomplete search results via the jQuery Plugin? We want to show pinned results as "sponsored" on one of our projects, but there's nothing in the jQuery guide, GitHub repo, or results ranking documentation that covers that.


Hey @noerbot,

There's no explicit indicator, but you can tell that a result is pinned if the score is an absolute 1. I hope that helps.


1 Like

Thanks Ross! That is super helpful! So we will just add the "sponsored" flag to anything with a score of 1. :+1:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.