Is XRANK depracating in Sharepoint online search api?

MD_Musavvir 1 Reputation point
2021-09-16T09:22:13.937+00:00

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);
})

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,126 Reputation points
    2021-09-17T02:42:05.643+00:00

    Hi @MD_Musavvir ,

    XRANK operator is not depracating in FQL (FAST Query Language).

    The article you mentioned is saying COUNT operator and FILTER operator is deprecated inFQL. XRANK operator is not affected. You could still use it in the query.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.