Changeset 30988 for other-projects


Ignore:
Timestamp:
2016-10-30T11:32:57+13:00 (7 years ago)
Author:
davidb
Message:

Changed flag to 'read-only' and changed the filed name full text saved under

Location:
other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust
Files:
2 edited

Legend:

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

    r30985 r30988  
    119119                    solr_doc_json.put("id", page_id);
    120120                    solr_doc_json.put("volumeid_s", volume_id);
    121                     solr_doc_json.put("_text_", text);
     121                    solr_doc_json.put("eftext_txt", text);
    122122                   
    123123                    solr_add_json.put("commitWithin", 5000);
  • other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PrepareForIngest.java

    r30986 r30988  
    5858
    5959   
    60 
     60/*
    6161        System.out.println("");
    6262        System.out.println("############");
     
    6464        System.out.println("############");
    6565        System.out.println("");
    66 
     66*/
    6767       
    6868        //long num_ids = json_ids.count();
     
    114114        options.addOption(solr_url_opt);
    115115       
    116         Option dry_run_opt = new Option("r", "dry-run", false,
    117                 "Used to initiate a 'dry-run' where the files are all read in, but nothing is ingested/saved");
    118         dry_run_opt.setRequired(false);
    119         options.addOption(dry_run_opt);
     116        Option read_only_opt = new Option("r", "read-only", false,
     117                "Used to initiate a run where the files are all read in, but nothing is ingested/saved");
     118        read_only_opt.setRequired(false);
     119        options.addOption(read_only_opt);
    120120       
    121         // need to work with CLI v1.2 as this is the JAR that is bundled with Hadoop/Spark
     121        // Need to work with CLI v1.2 as this is the JAR that is bundled with Hadoop/Spark
    122122        CommandLineParser parser = new GnuParser();
    123123        //CommandLineParser parser = new DefaultParser(); // if working with CLI v1.3 and above
Note: See TracChangeset for help on using the changeset viewer.