I have found this article from Microsoft forum 1971119 in that they mention that Microsoft is deprecating XRANK query.
I am using below code whether this code also Impacting. Please let me know its deprecating in feature. Please suggest me.
// provide a default query text at creation
var queryOptions={
RowLimit: 100,
StartRow: 0,
};
var query=`* XRANK(cb=100) Title:test`;
let q2 =SearchQueryBuilder(query,queryOptions);
const results =sp.search(q2);
results.then((item:SearchResults)=>{
console.log(item.PrimarySearchResults);
})