Home > CMS- Content Management System > Sharepoint > Sample search term query’s of result search web part

Sample search term query’s of result search web part

Sample search term query’s to search result through result search web part

  1. Search only document (i.e. all types but not docx type) under specific library
    {searchTerms} Path:”document path” AND (NOT FileType:docx) AND IsDocument:True

with above query search result will not show folders.

 

  1. Search in specific site only

{searchTerms} Path:”site url”

Example: {searchTerms} Path:”https://abc.sharepoint.com/mstest/”

 

  1. Search result of specific Author with file type like docx, pdf

{searchTerms} Path:”site url” AND FileType:docx AND Author: User display name

{searchTerms} Path:”document path” AND FileType:docx AND Author:abc pqr

 

  1. Search document based on current user in specific library

{searchTerms} {User.Name}  AND IsDocument:True AND Path:document path

 

  1. Search only document of specific folder

{searchTerms} Path:”Url of folder” AND IsDocument:True

{searchTerms} Path:”document path” AND IsDocument:True

 

  1. Search in all document library in site only

{searchTerms} contentclass:STS_List_DocumentLibrary AND Path:site url

 

  1. Search only item of sites.

{searchTerms}  (contentclass:STS_ListItem OR IsDocument:True) AND  Path:site url

 

  1. Search all sites.

{searchTerms}  contentclass:STS_Web

 

  1. Search only list and library of particular site

{searchTerms}  Path:site url  AND   (contentclass:STS_List OR contentclass:STS_List_DocumentLibrary)

 

  1. Serach only list and library

{searchTerms}  (contentclass:STS_List OR contentclass:STS_List_DocumentLibrary)

 

  1. Search document in specific library on tag base

{searchTerms}  Path:”document path” AND  (owstaxidmetadataalltagsinfo:”tag name” OR owstaxidmetadataalltagsinfo:”tag name”)

OR

{searchTerms} IsDocument:true tag name2 tag name2 AND Path:”document path”

 

  1. Show search result based on file name

{searchTerms} filename:Finance.docx

 

  1. Show search result in specific document libarary

{?{searchTerms} Path: “document path” }

? – is use to avoid result on page load.

This Article is TAGGED in , . BOOKMARK THE permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">