Podemos filtrar nuestra búsqueda de SharePoint por items del tipo Site Page utilizando el filtro de Content Class y el valor STS_ListItem_WebPageLibrary. Tan solo debemos incluir en nuestra query (o query template): contentclass:STS_ListItem_WebPageLibrary No hay una lista "oficial" por parte de Microsoft para los Content Class pero podéis encontrarla aquí: https://lodesharepoint.com/lista-de-content-class-en-sharepoint
Categoría: Search
Lista de Content Class en SharePoint
No hay una lista “oficial” por parte de Microsoft para los Content Class pero aquí tenéis los STS disponibles (Ejemplo: contentclass:STS_Site): STS_Site – Site CollectionSTS_Web – Site (Web)STS_List_850 – Page LibrarySTS_ListItem_850 – PageSTS_List_DocumentLibrary – Document LibrarySTS_ListItem_DocumentLibrary – Document Library ItemsSTS_List – Custom ListSTS_ListItem – Custom List ItemSTS_List_Links – Links ListSTS_ListItem_Links – Links List ItemSTS_List_Tasks – …
Forzar el Stop de los Crawls por Power Shell
Este comando detiene todos los Crawls que no estén en estado "Idle": Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object { if ($_.CrawlStatus -ne "Idle"){ $_.StopCrawl() } } Con este comando podemos ver el estado de los Content Source: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | select Name, CrawlStatus
CAML Query Auto-Created in C# with Loops
This is a function in order to create a CAML Query specified for Filters. Once we have the filters, we've to create the parameters for the function, following this template: Parameters Template Name1|Type1|Operation1|Value1,Name2|Type2|Operation2|Value2... [Operation property can only be "Equal" or "Contains", 'cause that's what I need, but it can be modified] Example Title|Text|Contains|Document,Category|Choice|Equal|Docs [Filter items …
SharePoint 2013: Create JS File From HTML Display Template
When you create a custom Display Template and you deploy it, you can see the HTML uploaded, but you can't see its JS (created automatically in theory). Problem: You don't have the correspondent JS of your HTML Display Template Solution: 1. Access to your Site with SharePoint Designer 2. Go To: All Files -> _catalogs …
Sigue leyendo SharePoint 2013: Create JS File From HTML Display Template
SharePoint 2013: Configure Search Application Topology
You can configure your Search Application Topology through your servers and manage all its parts separately, or (like in my case) you only need to configure it all in one server. Using PowerShell I've only need to run this following commands:1. Get the Search Service Instance of my server into a variable (The second command …
Sigue leyendo SharePoint 2013: Configure Search Application Topology
SharePoint 2013: Stop Crawls using PowerShell
Run this Script in PowerShell to stop all your Crawls: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StopCrawl()} You could also start full Crawls on every Content Source changing the StopCrawl command like this: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StartFullCrawl()}