Changeset 30971 for other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PagedJSON.java
- Timestamp:
- 2016-10-28T11:35:48+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PagedJSON.java
r30970 r30971 107 107 JSONObject solr_doc_json = new JSONObject(); 108 108 solr_doc_json.put("id", page_id); 109 solr_doc_json.put("volumeid ", volume_id);110 solr_doc_json.put(" text_t", text);109 solr_doc_json.put("volumeid_s", volume_id); 110 solr_doc_json.put("_text_", text); 111 111 solr_doc_json.put("commitWithin", 5000); 112 112 … … 256 256 System.out.println("Sample output Solr add JSON [page 20]: " + solr_add_doc_json.toString()); 257 257 System.out.println("=================="); 258 //System.out.println("Sample text [page 20]: " + solr_add_doc_json.getString(" text_t"));258 //System.out.println("Sample text [page 20]: " + solr_add_doc_json.getString("_text_")); 259 259 } 260 260 … … 273 273 */ 274 274 275 //postSolrDoc(solr_add_doc_json);275 postSolrDoc(solr_add_doc_json); 276 276 277 277 }
Note:
See TracChangeset
for help on using the changeset viewer.