Search Suggest list sorted other than ASC or DESC

206
1
10-22-2020 05:16 AM
AlexRodriguez
New Contributor III

Using the Javascript API v.4.16
Search widget is tied to a feature layer.

Trying to sort the suggest list by 'match score' (custom code).

Is there an event that will allow me to get to the suggest list BEFORE it is displayed?
As it is now, it has to display twice...original, then sorted.

0 Kudos
1 Reply
AlexRodriguez
New Contributor III

Just an FYI.  The answer is NO.  There is no way to get to that suggestion list until the "suggest.complete" event.  At that point the list can be accessed and modified.  To get to that list before, it seems you need to write a custom widget.

0 Kudos