function(query) {
    // create the required interface elements
    this.out = $('#search-results');
    this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out);
    this.dots = $('<span></span>').appendTo(this.title);
    this.status = $('<p style="display: none"></p>').appendTo(this.out);
    this.output = $('<ul class="search"/>').appendTo(this.out);

    $('#search-progress').text(_('Preparing search...'));
    this.startPulse();

    // index already loaded, the browser was quick!
    if (this.hasIndex())
      this.query(query);
    else
      this.deferQuery(query);
  }
function(query) {
    // create the required interface elements
    this.out = $('#search-results');
    this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out);
    this.dots = $('<span></span>').appendTo(this.title);
    this.status = $('<p style="display: none"></p>').appendTo(this.out);
    this.output = $('<ul class="search"/>').appendTo(this.out);

    $('#search-progress').text(_('Preparing search...'));
    this.startPulse();

    // index already loaded, the browser was quick!
    if (this.hasIndex())
      this.query(query);
    else
      this.deferQuery(query);
  }
function ( query ) { // create the required interface elements this . out = $ ( '#search-results' ) ; this . title = $ ( '<h2>' + _ ( 'Searching' ) + '</h2>' ) . appendTo ( this . out ) ; this . dots = $ ( '<span></span>' ) . appendTo ( this . title ) ; this . status = $ ( '<p style="display: none"></p>' ) . appendTo ( this . out ) ; this . output = $ ( '<ul class="search"/>' ) . appendTo ( this . out ) ; $ ( '#search-progress' ) . text ( _ ( 'Preparing search...' ) ) ; this . startPulse ( ) ; // index already loaded, the browser was quick! if ( this . hasIndex ( ) ) this . query ( query ) ; else this . deferQuery ( query ) ; }
perform a search for something
perform a search for something
search the index