Thursday 2 February 2017

Sharepoint search result web part search the content and document

1. Add the Search Box Web Part and Search Results Web Part
2. In the Search Results Web Part, click the Web Part Menu, and then Edit Web Part.
3. In the Web Part tool pane, click Change query. This will open a dialog box.
4. Add following code on Query Text box.
path:"https://<domain url>/sites/demo"  (IsDocument:"True" OR    contentclass:"STS_ListItem" OR ContentTypeId:0x01* AND NOT ContentTypeId:0x0120*) {SearchBoxQuery}

No comments:

Post a Comment