So I'm using a search widget to search across multiple similar (same schema) map services and have set things up to
where I get suggestions.
Upon selection of a suggestion "result", I've got some event handlers doing what I need them to do and it all works. But I just don't like how the suggestions are displayed. They are grouped by service/source including a header referencing that source something like this:
| service1 : searchfield1, searchfield 2 |
|---|
| record 1 |
| record 2 |
| record 3 |
| service2 : searchfield1, searchfield 2 |
| record 4 |
| record 5 |
| record 6 |
| service3 : searchfield1, searchfield 2 |
| record 7 |
| record 8 |
| record 9 |
I want all those records but without any references to what service they came from.
My Search widget looks like this:
<SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>superSearch <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Search</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN>
sources<SPAN class="punctuation token">:</SPAN> list_of_services<SPAN class="punctuation token">,</SPAN>
map<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>map<SPAN class="punctuation token">,</SPAN>
popupEnabled<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">false</SPAN><SPAN class="punctuation token">,</SPAN>
autoSelect<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">false</SPAN><SPAN class="punctuation token">,</SPAN>
enableSourcesMenu<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">false</SPAN><SPAN class="punctuation token">,</SPAN>
enableSuggestions<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">true</SPAN><SPAN class="punctuation token">,</SPAN>
maxSuggestions<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">5</SPAN><SPAN class="punctuation token">,</SPAN>
allPlaceholder<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Example: John Smith"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="comment token">// I'm searching for names</SPAN>
autoNavigate<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">false</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"superSearch"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Is there a way to format this, i.e. drop the "category" header identifying the feature services I'm calling? Thanks.