Forum Discussion

ulmoshare's avatar
ulmoshare
Brass Contributor
Jan 30, 2026

KQL on SitePages

We're performing a search query in PnP Modern Search that looks like this:

{searchTerms}

(

Path:https://xxx.sharepoint.com/sites/qm/QMH/Einrichtungen/*

OR Path:https://xxx.sharepoint.com/sites/qmh/QMH%20Lesebibliothek/*

)

The corresponding documents are found.

 

Now we've extended the query to include SitePages:

 

{searchTerms}

(

Path:https://xxx.sharepoint.com/sites/qm/QMH/Einrichtungen/*

OR Path:https://xxx.sharepoint.com/sites/qmh/QMH%20Lesebibliothek/*

OR Path:https://xxx.sharepoint.com/sites/QMH/SitePages/* )

 

Now we should see a few more results, but nothing changes. No pages are found with this query. Does anyone know what the problem is?

1 Reply

  • KasperLarsen's avatar
    KasperLarsen
    Iron Contributor

    There are multiple potential reasons, like the site pages not in the index. I recommend using the chrome/edge extension SP Editor for testing the query. It also provides an option to check the index.