Skip to main content
Source Link

SharePoint Online search - simple query doesn't work - is it a bug or am I doing it wrong?

Thanks for your help.

I am trying to write a simple query in search results web part that looks like this: {SearchBoxQuery} AND ContentTypeId=completeidhere

However, the query returns results from everywhere. I have also tried ContentType with the name of the content type as well as the path property pointing directly to the document library.

However, in all the cases, it returns all the results.

Can someone please help out and share their thoughts?.

Thanks.