The SearchQueryTool is an open source tool which helps to execute Search queries for SharePoint. This article explains how to find the special property InformationProtectionLabelId
.
Kategorie: Search
SharePoint search: Use the RefinementFilter property to avoid the 4096 characters limit of SharePoint search queries
Even after 5 years of SharePoint and O365 development I sometimes stumble across endpoints I did not know about. Quite often those endpoints are quite helpful.
In this case it was the RefinementFilter property that can be added to SharePoint Search calls. Using this property you can ignore the query length limit of 4096 characters. This can be super helpful when querying huge collections of items.
Weiterlesen „SharePoint search: Use the RefinementFilter property to avoid the 4096 characters limit of SharePoint search queries“SharePoint Web Ids are not unique anymore!
Some time ago I showed how to search for documents of a single web. This may not work in Office 365 and SharePoint 2016 because the Web Ids in SharePoint Online are not unique anymore.
Weiterlesen „SharePoint Web Ids are not unique anymore!“
SharePoint Search: Get Usage data from search
The SharePoint Search has by default some managed properties which show how often items or a documents have been opened. Furthermore you can increase these usage numbers programmatically.
Weiterlesen „SharePoint Search: Get Usage data from search“
SharePoint SearchQuery to get all .aspx pages
The following Search Query returns all possible .aspx pages:
FileExtension:aspx AND (ContentClass:STS_ListItem_WebPageLibrary OR ContentClass:STS_ListItem_DocumentLibrary OR ContentClass:STS_List_PublishingPages OR ContentClass:STS_Web OR ContentClass:STS_Site) AND FileType:html
The results also contains subweb homepages. For site collection homepages you need to load the homepage object from the site you are on using jsom or csom (one call per Site).
JSOM: Increase Item / Document Usage
Some time ago I looked for a possibility to increase the usage counter of a SharePoint list item without opening the item in dialog or edit form. I knew the search has special properties for showing how often a list item / document / page has been opened (LifeTimeViews and RecentViews).
Weiterlesen „JSOM: Increase Item / Document Usage“
SharePoint Search: Only search current Site Collection or Web
SharePoint Search attributes can be used to limit SharePoint Search to only search a site collection or a web. Normally you can use the „path“ attribute. In some cases this will not give you the wanted results.
Weiterlesen „SharePoint Search: Only search current Site Collection or Web“
SharePoint „Search result“-webpart „Alert Me“-button missing
SharePoint is a search driven application. End-users can use the „Alert me“-feature of the search result webpart to receive automatic email messages when new content is created.
Weiterlesen „SharePoint „Search result“-webpart „Alert Me“-button missing“
SharePoint Search: Load Search Parameter from URL
In SharePoint 2013 and Office 365 the Search results WebPart has a functionaility to load search parameters from the query string. This can be done by using the QueryString keyword.
Weiterlesen „SharePoint Search: Load Search Parameter from URL“
SharePoint Client Search: Load managed search properties
When you search in SharePoint or Office 365 content with the SharePoint JavaScript object model (JSOM) you need to explicitly load managed search properties. Otherwise all search results will only return the standard search properties.
Therefore you need to add all managed properties before you execute the search. This can be done by adding the managed properties to the keywordQuery-object.
Weiterlesen „SharePoint Client Search: Load managed search properties“