Sitekit Forums

Sitekit Forums

Developer Discussion - Enhancing searches

Andy Hadley

Andy Hadley

Posted on 04 September 2014

Search by class is very useful, but we still can't assign classes to newsfeed, forum or feedback content. Is that on the roadmap ?

James Delaney

AdminJames Delaney

Posted on 05 September 2014

Hi Andy,

You can apply a default class to any post type and posts can be used to drive news, events, forums and many other functions.

Each individual post is assigned a class from the default class assigned to that post type in Configure > Posts > (Post type). You can also change the assigned class for any individual posts-based item (posts-based news, events, forums, discussions, comments, lists, locations etc.) by editing that item in the Admin panel in Edit > Content > Post type > (Item).

Let me know how you get on.

James Delaney

AdminJames Delaney

Posted on 05 September 2014

It's worth noting that the above applies to content using the posts-based architecture introduced in Sitekit CMS 10 and extended in Sitekit CMS 10.1.

Asset classes, and more granular permissions associated with multiple group membership introduced in Sitekit CMS v9.6, do not apply to older news/events/forum module functionality.

Mike Cave

Posted on 24 September 2014

Further to Index Searching - I am having trouble using Sitekit class "sknoindex" to exclude header, footer, navigation elements etc of pages - it doesn't seem to work!

I raised a Ticket on this (#121098) some time ago but as yet have not had a reply from Sitekit.

We are building 13 intranet sites plus a separate hub area to support these sites, and we need to be able to set up searches for an individual intranet plus hub.

We don't want to use the conventional Sitkeit search as all sites will be in the same licence, and so a targeted search for an intranet (plus hub area) will unfortunately find download items etc for all other intranets. Thus we want to control searches strictly by asset class.

Ian Stewart

AdminIan Stewart

Posted on 24 September 2014

I think this is the issue we've seen on other sites. sknoindex does work however it can't be used to unindex or revise the index of previously indexed content. I did an experiment on your site and added the sknoindex class identifier to your header section which encompasses the search block and the text size scripts. Having made the addition and then doing a search there was no change, but after I'd edited the page in question in admin, the page is refreshed in the index and the text inside the sknoindex class is no longer listed. Anyway I'll put more details in the ticket response, let me know how you get on.

Mike Cave

Posted on 25 September 2014

Many thanks for your investigations and recommendations.

I went through all relevant page layouts, setting class="sknoindex" on sections I wanted to ignore.

I then found by simply re-publishing all pages in our Locality Intranet (manual process - took about and hour or so) the search now indeed ignores all areas of pages marked for exclusion.

So, it seems to re-index a page, re-publishing seems to be enough (i.e. without editing.

Same of course for any download files that are newly changed to required asset class, but don't seem to be picked up by index searched. Again just re-publish the files and they appear in search results.

Only slight issue is for post pages that are generated automatically – as they only exist at invocation time I’m not sure how these would get re-indexed. So these are the only ones now that still appear in results if I search on something from excluded areas. I got round this by setting asset class of post page different to those indexed by search. But it would be good to get a solution.

Andy Hadley

Andy Hadley

Posted on 25 September 2014

It would be good to have the facility to wipe and reindex, because potentially if we find that items are appearing because Mike , for all his dilligence, missed out a piece of the screen furniture, and we add another sknoindex, someone would have to go through and mock edit every page all over again. Doesn't need to be automatic or frequent, but just a drop and redo button.

Steven Howard

Posted on 06 November 2014

Hi

So can you confirm that existing news and events modules, of which there are many that I supprt, do not and will not appear in SiteKit search results? Am I correct in assuming that for these to appear in the search results, my only option is to replicate all these modules as posts and copy across hundreds of news and events items? Either that or pay for Google site search?