feat(search): increase description extract character limit to 100

This commit is contained in:
alistair3149 2023-08-24 15:30:03 -07:00
parent 042f2bfbba
commit 853e9a9190
No known key found for this signature in database
GPG key ID: 16076C01E5C88864

View file

@ -56,7 +56,7 @@ function adaptApiResponse( config, query, response, showDescription ) {
case 'textextracts':
return page?.extract;
case 'pagedescription':
return page?.pageprops?.description?.slice( 0, 60 );
return page?.pageprops?.description?.slice( 0, 100 );
}
};
@ -177,7 +177,7 @@ function mwActionApiSearchClient( config ) {
break;
case 'textextracts':
params.prop += '|extracts';
params.exchars = '60';
params.exchars = '100';
params.exintro = '1';
params.exlimit = limit.toString();
params.explaintext = '1';