Need to exclude excerpt pages with instantsearch

I have 1 space with several pages that only serve the purpose to provide excerpt content to several pages in my wiki. I have removed all excerpt content in search already with hideExcerptMacro=false (at least thats how i think it work) I would also be nice to remove all pages in this space for search. For example if a page has the name "Wifi" i want that article removed from the instantsearch. 

Can I exclude spaces with the "filter" + - attribute? 

1 answer

1 accepted

Accepted Answer
1 vote

Hi Atle,

By default there's no way to exclude individual pages from the search, unless you change the Lucene search engine to one of your choice that will allow you to do this (I'm assuming you're on a server version, as you haven't tagged your question with any cloud tags).

If you have your excerpt content in a different space you can archive that space.  Anything in that space will not show up in the search results, and the space won't display in the Space directory unless a user filters for archived spaces.

If you're looking for a way of hiding individual pages in a space, and you still need other content in that space to appear in the search results, the answers to this question are probably your best place to start.

Forgot to mention im using the add-on "Instantsearch"

https://bitbucket.org/ndunn/instant-search/wiki/Home

Any idea on how to use "filter" attribute? Could this solve the problem?

If you have your excerpt content in a different space you can archive that space.  Anything in that space will not show up in the search results, and the space won't display in the Space directory unless a user filters for archived spaces.

Will archived content be visible / accessible to users? I tried to hide with permissions but excerpt content would be "access denied" then.

Hi Atle,

I've not used that add-on, and the documentation is a little...vague, to say the least!  So I don;t want to comment on the filter attribute, because honestly I'm not sure.

Archived content is still visible and accessible to users, but it doesn't show up in the search results.  So if you have a space that contains Excerpt macros, you can archive that space and the Excerpt Include macro will still show content from an archived space in a non-archived space, as long as you don't change the space permissions to prevent people viewing the archived space.

Although archived spaces don't show up in the space directory by default, users can turn on the Archived filter in the Search directory to see and access the archived spaces.  They can also access archived spaces (or pages within archived spaces) by following a link.

How do i archive? Is it the same as delete space?

Hi Atle,

No, archiving and deleting space are very different. 

When you delete a space it is removed permanently - Instructions for deleting a space

When you archive a space it essentially hides it from the Space Directory and Search, but it doesn't remove it from Confluence - Instructions for archiving a space

A word of warning: An archived space can be un-archived, but if you delete a space it is a permanent deletion and can't be undone.  You might want to take a backup first just in case.

 

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

388 views 0 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you