Ignore:
Timestamp:
2016-10-28T14:28:51+13:00 (7 years ago)
Author:
davidb
Message:

Introduction of new solr-url command line argument, leading to some other adjustments in RUN scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PagedJSON.java

    r30974 r30975  
    3131
    3232    protected String _input_dir;
     33    protected String _solr_url;
    3334    protected String _output_dir;
    3435    protected int    _verbosity;
    3536   
    36     public PagedJSON(String input_dir, String output_dir, int verbosity)
     37    public PagedJSON(String input_dir, String solr_url, String output_dir, int verbosity)
    3738    {
    3839        _input_dir  = input_dir;
     40        _solr_url   = solr_url;
    3941        _output_dir = output_dir;
    4042        _verbosity  = verbosity;
     
    170172        */
    171173       
    172         //return solr_doc_json;
    173174        return solr_update_json;
    174175    }
     
    288289                */
    289290                           
    290                 saveSolrDoc(solr_add_doc_json,output_json_bz2);
    291                 //postSolrDoc(solr_add_doc_json);
    292            
     291                if (_solr_url != null) {
     292                    postSolrDoc(solr_add_doc_json);
     293                }
     294
     295                if (_output_dir != null) {
     296                    saveSolrDoc(solr_add_doc_json,output_json_bz2);
     297                }
    293298            }
    294299            else {
Note: See TracChangeset for help on using the changeset viewer.