nl_tokens: Event triggered when the queue of queries have been depleted ( with any result or outdated queries ) @event AlgoliaSearchHelper#event : searchQueueEmpty @example helper . on ( searchQueueEmpty function () { console . log ( No more search pending ) ; // This is received before the result event if we re not expecting new results } ) ;
pl_tokens: function AlgoliaSearchHelper ( client , index , options ) { if ( client . addAlgoliaAgent && ! doesClientAgentContainsHelper ( client ) ) { client . addAlgoliaAgent ( 'JS Helper (' + version + ')' ) ; } this . setClient ( client ) ; var opts = options || { } ; opts . index = index ; this . state = SearchParameters . <mask> ( opts ) ; this . lastResults = null ; this . _queryId = 0 ; this . _lastQueryIdReceived = - 1 ; this . derivedHelpers = [ ] ; this . _currentNbQueries = 0 ; }