Robert, Thank you for making this available in JavaScript. I noticed a possible bug. ESearch fails to configure for my layers if the first layer in my service is an annotation layer. I am using eSearch v1.16 and WAB Developer Edition for my configuration. To reproduce: 1. Add the eSearch widget to a blank app. 2. Click 'Add a Search Layer'. 3. Enter the Search URL .../MapServer/1 for a Map Service that has multiple layers and an annotation type Feature Class as the first layer. 4. Hit enter and 'Available Fields' does not populate. I have tested my service without the layer and it all works properly. My workaround is to have the annotation layer in a separate service.
... View more