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

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,273 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,071 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,767 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,591 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,021 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.