powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[FEATURE] Get-PnPSearchConfiguration support for Refinable managed properties

Open LutzD-pkb opened this issue 1 year ago • 2 comments

Describe the solution you'd like Get-PnPSearchConfiguration currently returns all custom managed properties. Unfortunately, while this would have been sufficient for on-prem SharePoint, any time you need properties to be refinable or sortable in SPO, you have to map crawled properties to the existing refinable managed properties (e.g., RefinableString00, RefinableDate19). I would like for the Get-PnPSearchConfiguration to be able to retrieve any of these properties that have mappings.

Describe alternatives you've considered There is no other alternative that I've found. There does not appear to be any way within Graph or SPO REST to retrieve managed properties.

Additional context I'm attempting this as part of a broader attempt to use Microsoft 365 DSC, which utilizes PnP.PowerShell.

LutzD-pkb avatar Sep 24 '24 17:09 LutzD-pkb

Heya, how are you trying to pull the refinable managed properties? For me, this returns the custom AND refinable properties for the whole tenant:

Get-PnPSearchConfiguration -Scope Subscription -OutputFormat ManagedPropertyMappings

koskila avatar Oct 28 '24 13:10 koskila

Get-PnPSearchConfiguration -Scope Subscription. See context: Microsoft365DSC > MSFT_SPOSearchManagedProperty.psm1

The -OutputFormat ManagedPropertyMappings flag does appear to pull back the Refinable properties, but does not include all of the other managed property attributes.

LutzD-pkb avatar Nov 07 '24 15:11 LutzD-pkb