PnP JavaScript core library provides the interfaces required
for building the queries for searching SharePoint content.
There are multiple ways of building the queries for PnP JS
core search.
- One way is to use the Search Query interface directly with necessary query parameters
- The other way is to build the query using Search query builder syntax along with other query parameters.
- The default way passing just the query text to the search method.
PnP JS core acts as a wrapper for the interacting with the
SharePoint data over the object models or the REST APIs available. The samples or syntax explained below are compatible for JavaScript editors.