( results, resultCount, searchTerms )
| 113 | ); |
| 114 | }; |
| 115 | const _displayNextItem = ( |
| 116 | results, |
| 117 | resultCount, |
| 118 | searchTerms |
| 119 | ) => { |
| 120 | // results left, load the summary and display it |
| 121 | // this is intended to be dynamic (don't sub resultsCount) |
| 122 | if (results.length) { |
| 123 | _displayItem(results.pop(), searchTerms); |
| 124 | setTimeout( |
| 125 | () => _displayNextItem(results, resultCount, searchTerms), |
| 126 | 5 |
| 127 | ); |
| 128 | } |
| 129 | // search finished, update title and status message |
| 130 | else _finishSearch(resultCount); |
| 131 | }; |
| 132 | |
| 133 | /** |
| 134 | * Default splitQuery function. Can be overridden in ``sphinx.search`` with a |
no test coverage detected