Global.helma.Search.Searcher (index)
  • Parameter {helma.Search.Index}:
    index The index to search in.
  • Returns
    A newly created index searcher
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
603:   helma.Search.Searcher = function(index) {
604:       var searcher = new Packages.org.apache.lucene.search.IndexSearcher(index.getDirectory());
605:   
606:       /**
607:        * The search results.
608:        * @type helma.Search.HitCollection
609:        */
610:       this.hits = null;
611:   
612:      /**
613:       * A vector with SortField instances, if any have been defined.
614:       * @type java.util.Vector
615:       * @see #sortBy
616:       */
617:      this.sortFields = null;
618:  
619:      /**
620:       * Returns the wrapped IndexSearcher instance.
621:       * @type org.apache.lucene.search.IndexSearcher
622:       */
623:      this.getSearcher = function() {
624:          return searcher;
625:      };
626:  
627:      return this;
628:  }