5

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

Thanks

1 Answer 1

3

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 and acknowledge you have read our privacy policy.

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