question

MDMusavvir-5200 avatar image
0 Votes"
MDMusavvir-5200 asked MichaelHan-MSFT commented

Is XRANK depracating in Sharepoint online search api?

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



office-sharepoint-onlinesharepoint-devoffice-sharepoint-server-developmentoffice-sharepoint-server-itprooffice-sharepoint-server-search-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MichaelHan-MSFT commented

Hi @MDMusavvir-5200,

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MDMusavvir-5200,
Is there anything update? I am willing to hear from you.

0 Votes 0 ·