@@ -1294,6 +1294,7 @@ self.__bx_behaviors.selectMainBehavior();
12941294 "text" ,
12951295 false ,
12961296 this . params . text . includes ( "to-warc" ) ,
1297+ data . originalWarcRecordId ,
12971298 ) ;
12981299
12991300 if ( text !== null && ( this . textInPages || saveOutput ) ) {
@@ -1303,7 +1304,11 @@ self.__bx_behaviors.selectMainBehavior();
13031304 if ( this . params . text . includes ( "to-warc-from-raw" ) ) {
13041305 logger . info (
13051306 "Extracting text from raw response" ,
1306- { url, hasRequestId : ! ! data . documentRequestId } ,
1307+ {
1308+ url,
1309+ hasRequestId : ! ! data . documentRequestId ,
1310+ refersTo : String ( data . originalWarcRecordId ) ,
1311+ } ,
13071312 "text" ,
13081313 ) ;
13091314 textExtract = new TextExtractViaResponse ( cdp , {
@@ -1317,10 +1322,15 @@ self.__bx_behaviors.selectMainBehavior();
13171322 "text-from-response" ,
13181323 false ,
13191324 this . params . text . includes ( "to-warc-from-raw" ) ,
1325+ data . originalWarcRecordId ,
13201326 ) ;
13211327 logger . info (
13221328 "Extracted text from raw response result" ,
1323- { url, hasText : textFromResponse !== null } ,
1329+ {
1330+ url,
1331+ hasText : textFromResponse !== null ,
1332+ refersTo : String ( data . originalWarcRecordId ) ,
1333+ } ,
13241334 "text" ,
13251335 ) ;
13261336 if ( textFromResponse !== null && ( this . textInPages || saveOutput ) ) {
@@ -1356,7 +1366,12 @@ self.__bx_behaviors.selectMainBehavior();
13561366 }
13571367
13581368 if ( textExtract && this . params . text . includes ( "final-to-warc" ) ) {
1359- await textExtract . extractAndStoreText ( "textFinal" , true , true ) ;
1369+ await textExtract . extractAndStoreText (
1370+ "textFinal" ,
1371+ true ,
1372+ true ,
1373+ data . originalWarcRecordId ,
1374+ ) ;
13601375 }
13611376
13621377 if (
0 commit comments