SOLVED

Highlighted content web part - how to hide Preservation Hold docs

%3CLINGO-SUB%20id%3D%22lingo-sub-1898051%22%20slang%3D%22en-US%22%3EHighlighted%20content%20web%20part%20-%20how%20to%20hide%20Preservation%20Hold%20docs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1898051%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20realize%20this%20is%20only%20an%20issue%20for%20site%20collection%20admins%20who%20have%20access%20to%20the%20Preservation%20Hold%20Library%2C%20but%20still%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Highlighted%20Content%20web%20part%2C%20when%20configured%20to%20return%20documents%20from%20one%20or%20more%20sites%2C%20contains%20documents%20from%20the%20Preservation%20Hold%20Libraries%20of%20these%20sites.%20These%20clog%20up%20the%20web%20part.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20can%20I%20remove%20these%3F%20They%20have%20a%20special%20content%20type%20called%20%22Preserved%20Item%22%2C%20but%20that%20does%20not%20show%20at%20all%20in%20the%20web%20part%20configuration%20interface.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20there%20a%20way%20I%20can%20build%20a%20KQL%20query%20that%20excludes%20the%20Preservation%20Hold%20Library%20or%20excludes%20the%20%22Preserved%20Item%22%20content%20type%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1898051%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1898080%22%20slang%3D%22en-US%22%3ERe%3A%20Highlighted%20content%20web%20part%20-%20how%20to%20hide%20Preservation%20Hold%20docs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1898080%22%20slang%3D%22en-US%22%3E%3CP%3EAren't%20these%20forums%20wonderful%3F%20The%20best%20part%20is%20that%20as%20soon%20as%20you%20post%20a%20question%2C%20you'll%20find%20the%20answer%20yourself.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20case%2C%20I%20applied%20the%20%3CSTRONG%3EFilter%20and%20sort%3C%2FSTRONG%3E%2C%20selected%20%3CSTRONG%3EManaged%20property%3C%2FSTRONG%3E%20and%20into%20the%20search%20box%20I%20typed%26nbsp%3B%3CSTRONG%3Econtent%3C%2FSTRONG%3E.%20Then%2C%20from%20the%26nbsp%3B%3CSTRONG%3EManaged%20property%3C%2FSTRONG%3E%20%3CSTRONG%3Ename%3C%2FSTRONG%3E%26nbsp%3Bdropdown%20I%20selected%26nbsp%3B%3CSTRONG%3EContentType%3C%2FSTRONG%3E%20and%20specified%20%3CSTRONG%3EDoesn't%20contain%3C%2FSTRONG%3E%20with%20the%20text%20%3CSTRONG%3Epreserved%20item%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EViola.%20No%20more%20preservation%20hold%20items%20in%20the%20web%20part.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-11-18_11-38-09.png%22%20style%3D%22width%3A%20336px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F234251i6127A16CD37AFD90%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222020-11-18_11-38-09.png%22%20alt%3D%222020-11-18_11-38-09.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

Hi, 

 

I realize this is only an issue for site collection admins who have access to the Preservation Hold Library, but still:

 

The Highlighted Content web part, when configured to return documents from one or more sites, contains documents from the Preservation Hold Libraries of these sites. These clog up the web part.

 

How can I remove these? They have a special content type called "Preserved Item", but that does not show at all in the web part configuration interface.

 

Is there a way I can build a KQL query that excludes the Preservation Hold Library or excludes the "Preserved Item" content type?

 

 

1 Reply
best response confirmed by Ingeborg Hawighorst (MVP)
Solution

Aren't these forums wonderful? The best part is that as soon as you post a question, you'll find the answer yourself.

 

In this case, I applied the Filter and sort, selected Managed property and into the search box I typed content. Then, from the Managed property name dropdown I selected ContentType and specified Doesn't contain with the text preserved item.

 

Viola. No more preservation hold items in the web part. 

 

2020-11-18_11-38-09.png