Microsoft Search or SharePoint Search

%3CLINGO-SUB%20id%3D%22lingo-sub-3016474%22%20slang%3D%22en-US%22%3EMicrosoft%20Search%20or%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3016474%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20ask%20help%2C%20If%20somebody%20created%20a%20query%20that%20sort%20out%20the%20most%20viewed%20document%20in%20document%20library.%20I%20can%20only%20do%20the%20Promote%20search%20results.%20But%20the%20sorting%20of%20the%20result%20based%20on%20the%20most%20viewed%20document%20is%20unsuccessful.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3017427%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Search%20or%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3017427%22%20slang%3D%22en-US%22%3EWell%20you%20have%20the%20WebPart%20React%20Search%20available%20in%20the%20samples%2C%20you%20can%20implement%20and%20change%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmain%2Fsamples%2Freact-search%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmain%2Fsamples%2Freact-search%3C%2FA%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello!

 

I would like to ask help, If somebody created a query that sort out the most viewed document in document library. I can only do the Promote search results. But the sorting of the result based on the most viewed document is unsuccessful. 

 

 

2 Replies
Well you have the WebPart React Search available in the samples, you can implement and change
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-search

@Joao Livio 

 

Thanks Joao appreciate your quick response, I will let you know the result