public void build(SolrCore core,SolrIndexSearcher searcher) throws IOException {
  LOG.info("SolrSuggester.build(" + name + ")");
  dictionary=dictionaryFactory.create(core,searcher);
  lookup.build(dictionary);
  if (storeDir != null) {
    File target=getStoreFile();
    if (!lookup.store(new FileOutputStream(target))) {
      LOG.error("Store Lookup build failed");
    }
 else {
      LOG.info("Stored suggest data to: " + target.getAbsolutePath());
    }
  }
}

public void build ( SolrCore core , SolrIndexSearcher searcher ) throws IOException { LOG . info ( "SolrSuggester.build(" + name + ")" ) ; dictionary = dictionaryFactory . create ( core , searcher ) ; lookup . build ( dictionary ) ; if ( storeDir != null ) { File target = getStoreFile ( ) ; if ( ! lookup . store ( new FileOutputStream ( target ) ) ) { LOG . error ( "Store Lookup build failed" ) ; } else { LOG . info ( "Stored suggest data to: " + target . getAbsolutePath ( ) ) ; } } }
build the underlying lucene suggester
