PnP Modern Search
9 TopicsToday query in SharePoint Search not working anymore
Has anyone else had an issue with a query like RefinableDateXX={Today} not work for them anymore as of a few days ago? I've had a query i've been using for a few years and all of a sudden the items from a SharePoint list with a date field linked to a RefinableDate managed property no longer returns results for {Today}. I've had to use {Today-1} or {Today+1} but even that has been hit or miss. Especially when using an AND or OR for multiple dates or date ranges. Just wondering if i missed an update MS made or if something is broken.1.9KViews1like2CommentsPnP Modern Search - Query Term - Search Hub and Associated Sites
Hi, I have created an Advanced Search page with PnP verticals that I would like to search individual hubs and their associated sites. For example my verticals are as follows: All Hubs, Knowledge Hub&Associated Sites, Communities Hub, Colleague Hub The Knowledge Hub is the only one that has 30 plus associated sites and I would like to enter some query text in for the Knowledge Hub results to return results for that hub and all 30 sites. Does anyone know what the query looks like for this? I thought it was would be this: {searchTerms} RelatedHubSites:{Hub.Id} but this only works on the hub where the search page has been developed, I am hoping there is away to look across another Hub in a separate site collection? ThanksSolved4.1KViews0likes5CommentsPnP Modern Search Filter - Managed Metadata fields display additional properties
The PnP Filter webpart uses the managed Property "RefinableString01" mapped to a "Fiscal Year" term set. There are additional properties being displayed that may seem confusing to end user and we would like only to display the years. There is a description of the Property bag properties values. Usage - PnP Modern Search (v4) (microsoft-search.github.io)4.7KViews0likes4CommentsRefinement filters syntax in SharePoint
Hi there Recently, I created a SharePoint page, which uses PnP modern search v4 web parts. I have a PnP - Search field and PnP - Search results . They are both connected together. Note: all pages and documents are stored on my company's SharePoint domain. Originally In the PnP - Search results web part, Refinement filters was empty. When I typed in a search term and clicked [enter] or right arrow (>) button, it brought up all pages where the search term is in the page title, or in the page content. My Requirement Search for a web page where the page Title or page content contains searchTerms inputted in PnP - Search field . When Refinement filters, I noticed that it says "ex.: FileType:equals("docx") " Currently In the PnP - Search results web part Refinement filters used currently: FileType:equals("aspx") and Title:ends-with(searchTerms) After saving this as a draft, when I type in a page to search for, e.g., "Amanda", the only result that comes up is a Word Document, that contains her name. No pages appear in the search Results at all. I did some searching on the internet and found FAST Query Language (FQL) syntax reference: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference . So I understand that I am using the right syntax for 'FileType:equals("aspx")', and Title:ends-with(searchTerms), when I just have one of those filters. My Question What syntax should I use when I want the Refinement filters to include 2 filters? Another links I have looked at What is the difference between Query text and Refinement filters: https://learn.microsoft.com/en-us/answers/questions/640137/what-is-the-difference-between-query-text-and-refi.html Note: Apologies for the lack of images. At the moment when I try to insert an image it says "You do not have permission to upload images." Regards, George16KViews0likes1Commentpnp search results webpart display manager
Hi, I'm trying to use pnp search results to create a customized staff directory. I'm so close to how I want it to look but I can't get the Manager property to display correctly. I mapped People:Manager to RefinableString01 and it does display but as an account name, like i:0#.f|membership|user@email.com Is it possible to show the manager as displayName?1.2KViews0likes1CommentResult search query to exclude items without values in a managed property
Hi all, I am trying to configure a PnP Search Results WebPart to show all recently modified site pages that contain a value in a managed property, any value that isn't blank. For context, this is for a wiki SharePoint site where all users can make changes and submit for approval. After they are approved, I would like to show on the home page the most recently updated pages. What I would like the query to do: Search for all pages from the path below that contain any value in the RefinableString00 property. path:https://xxx.sharepoint.com/sites/wiki/ A refinement filter is also set in the WebPart so that results only show site pages: FileType:aspx Results are also sorted to show the most recently updated pages first, using the property: LastModifiedTime My issue is that there are pages that don't have a value in the managed property RefinableString00 showing. I would like for these pages to not show. The question being how would I achieve this? Any suggestions would be appreciated5.3KViews1like2CommentsWhat is the syntax for conditional formatting within PnP Modern Search WebPart template?
Hello, I am trying to figure out the syntax for the PnP Search WebPart so that I may apply conditional formatting. In this case, I would like to see if a column value is empty - then I would apply X CSS and if a column value's length is less than 2 , then apply this Y CSS. Conventionally, I would imagine it would be something like this if the value is empty : {{#if slot.item root.,slots.Title.value empty}} <div>..CSS here </div> {{/if}} AND something like this if the string length is greater than 2 : {{#if slot.item root.,slots.Title.value >len(2)}} <div>..CSS here </div> {{/if}} I would very much appreciate any assistance. Regards, Mike1.3KViews1like0CommentsSharePoint Online - PnP search v4 - List item - result display
Hi all, Hope you are all doing great. Having one question regarding PNP search v4. I managed the configure most of the stuff but there is one issue that I am not sure how to resolve. The idea is to search items from the Sharepoint list which is formatted in a specific view. When the search is done (I am using the search box and search results, nothing else), it shows these items which is great. However, the issue that I am having is that it opens the item in DispForm.aspx form, which is not the view I want for users to use. Is there a way to resolve this issue (without affecting other sites)? Also, I used the following line for searching the list for results Query template {searchTerms} path:https://domainname.sharepoint.com/sites/SiteName/Lists/ListName/ Result Source Id / Scope|Name LocalSharepointResults Any help would be deeply appreciated. Thanks.2.9KViews0likes0CommentsConfigure custom PNP Search page on SharePoint site (access via external account)
Hi - Wondering if anyone can help. I have created a PNP search page on my SharePoint site & configured the search settings so that when a user searches when on the site they land on the PnP search results page rather than the native default of Microsoft Search. This works, however, when I access as an external user, the search functionality defaults back to default & lands back on the default Microsoft search page. Can anyone help me?1.1KViews0likes0Comments