4

How can I add multiple refinements filters to Sharepoint search, using PnP-JS-Core 2.0.7

Thanks

2

You can specify it as below:

$pnp.sp.search({
    Querytext: "Documents",
    RowLimit: 10,
    RefinementFilters : ["and(Author:Gautam,fileExtension:equals('docx'))"]
}).then(function(data){
    console.log(data.PrimarySearchResults);
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.