Search only visible items and exclude items that has a hidden parent

Not applicable
09-04-2017
02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I want to make a Search() that finds all visible items in a document. I also want the search to take into account if the object has a hidden parent, grandparent or higher level node. In that case the item would be excluded from the search result. Is there a way to do this directly using the Search API?
I would prefer not to iterate over every item and traverse its parents to find out if the item is hidden hierarchically.
Best regards,
Elias Furenhed