Refiners of top level sites

%3CLINGO-SUB%20id%3D%22lingo-sub-217029%22%20slang%3D%22en-US%22%3ERefiners%20of%20top%20level%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217029%22%20slang%3D%22en-US%22%3E%3CP%3EHI%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20a%20webpart%2C%20I%20need%20to%20refine%20by%20the%20name%20of%20the%20top%20sites%20in%20a%20site%20collection.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20found%20the%20Managed%20Properties%20SPSIteURL%20and%20ParentLink...%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CEM%3ESPSIteURL%3A%20%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3Ehttps%3A%2F%2FmySiteCollection%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CEM%3E%3CBR%20%2F%3EParentLink%3A%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CEM%3Ehttps%3A%2F%2FmySiteCollection%2Fsite1%2Fsite1b%2FList%2FDocuments%2FForms%2FAllItems.aspx%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Ehttps%3A%2F%2FmySiteCollection%2Fsite2%2Fsite2b%2Fsite2c%2FList%2FDocuments%2FForms%2FAllItems.aspx%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eor%20%3CSTRONG%3ESitePath...%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ENeither%20of%20these%20properties%20are%20good%2C%20I%20need%20to%20detect%20%3CSTRONG%3Esite1%3C%2FSTRONG%3E%2C%20%3CSTRONG%3Esite2%3C%2FSTRONG%3E%2C%20...%3CSTRONG%3EsiteN%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20idea%20about%20how%20to%20get%20this%20information%20in%20a%20managed%20property%20to%20use%20it%20like%20an%20Avaliable%20Refiner%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-217029%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ERefiners%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esearch%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-323507%22%20slang%3D%22en-US%22%3ERe%3A%20Refiners%20of%20top%20level%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-323507%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F47968%22%20target%3D%22_blank%22%3E%40Mar%C3%ADa%20Jos%C3%A9%20Pedreira%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EThe%20easiest%20way%20i%20think%20is%20to%20go%20to%20your%20left%20navigation.%20Click%20the%20last%20option%2C%20make%20a%20new%20link%2C%20insert%20the%20title%20and%20hyperlink%20to%20that%20entry.%20Save%20it.%3C%2FP%3E%3CP%3EThe%20complex%20way%20is%20to%20insert%20a%20content%20search%20webpart%2C%20maybe%20in%20your%20top%20level%20site%2C%20in%20the%20webpart%20settings%20click%20on%20%22Change%20Query%22.%20There%20you%20can%20define%20your%20queries%20with%20KQL%20(Key%20Query%20Language).%3C%2FP%3E%3CP%3EIf%20you%20have%20an%20Office%20365%20as%20Admin%20permission%2C%20you%20can%20go%20to%20%22Apps%20and%20Services%22%2C%20make%20hyperlinks%20with%20Entries%20in%20your%20EDGE%20Browser%20and%20BING%20Search%20Machine.%20I%20wrote%20and%20article%20about%20that%20on%20my%20site%20%3CA%20href%3D%22https%3A%2F%2Fevotrain.de%2F11-bing-suche-mit-office-365-leicht-gemacht.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fevotrain.de%2F11-bing-suche-mit-office-365-leicht-gemacht.html%3C%2FA%3E.%3C%2FP%3E%3CP%3EMaybe%20you%20can%20check%20out%20the%20screenshots%20to%20see%20how%20to%20settle%20that.%3C%2FP%3E%3CP%3EHope%20that%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

HI,

 

In a webpart, I need to refine by the name of the top sites in a site collection.

 

I've found the Managed Properties SPSIteURL and ParentLink...

SPSIteURL: https://mySiteCollection


ParentLink:

https://mySiteCollection/site1/site1b/List/Documents/Forms/AllItems.aspx
https://mySiteCollection/site2/site2b/site2c/List/Documents/Forms/AllItems.aspx

 

or SitePath...

 


Neither of these properties are good, I need to detect site1, site2, ...siteN

 

Any idea about how to get this information in a managed property to use it like an Avaliable Refiner?

 

Thanks

1 Reply

Hi @María José Pedreira,

The easiest way i think is to go to your left navigation. Click the last option, make a new link, insert the title and hyperlink to that entry. Save it.

The complex way is to insert a content search webpart, maybe in your top level site, in the webpart settings click on "Change Query". There you can define your queries with KQL (Key Query Language).

If you have an Office 365 as Admin permission, you can go to "Apps and Services", make hyperlinks with Entries in your EDGE Browser and BING Search Machine. I wrote and article about that on my site https://evotrain.de/11-bing-suche-mit-office-365-leicht-gemacht.html.

Maybe you can check out the screenshots to see how to settle that.

Hope that helps.