function Search(uidFieldName) {
    if (!uidFieldName) {
      throw Error('js-search requires a uid field name constructor parameter');
    }

    this._uidFieldName = uidFieldName; // Set default/recommended strategies

    this._indexStrategy = new PrefixIndexStrategy();
    this._searchIndex = new TfIdfSearchIndex(uidFieldName);
    this._sanitizer = new LowerCaseSanitizer();
    this._tokenizer = new SimpleTokenizer();
    this._documents = [];
    this._searchableFields = [];
  }
/**
   * Constructor.
   * @param uidFieldName Field containing values that uniquely identify search documents; this field's values are used
   *                     to ensure that a search result set does not contain duplicate objects.
   */
Constructor.
@param uidFieldName Field containing values that uniquely identify search documents; this field's values are used
to ensure that a search result set does not contain duplicate objects.
Constructor . @param uidFieldName Field containing values that uniquely identify search documents ; this field ' s values are used to ensure that a search result set does not contain duplicate objects .
function Search(uidFieldName) {
    if (!uidFieldName) {
      throw Error('js-search requires a uid field name constructor parameter');
    }
    this._uidFieldName = uidFieldName; 
    this._indexStrategy = new PrefixIndexStrategy();
    this._searchIndex = new TfIdfSearchIndex(uidFieldName);
    this._sanitizer = new LowerCaseSanitizer();
    this._tokenizer = new SimpleTokenizer();
    this._documents = [];
    this._searchableFields = [];
  }
function Search ( uidFieldName ) { if ( ! uidFieldName ) { throw Error ( 'js-search requires a uid field name constructor parameter' ) ; } this . _uidFieldName = uidFieldName ; this . _indexStrategy = new PrefixIndexStrategy ( ) ; this . _searchIndex = new TfIdfSearchIndex ( uidFieldName ) ; this . _sanitizer = new LowerCaseSanitizer ( ) ; this . _tokenizer = new SimpleTokenizer ( ) ; this . _documents = [ ] ; this . _searchableFields = [ ] ; }
Constructor.
Constructor .
// Set default/recommended strategies