More in this section

Forums / General Discussions / Search filtering

Search filtering

2 posts, 0 answered
  1. Tony
    Tony avatar
    20 posts
    12 Oct 2012
    26 Aug 2011
    Link to this post
    I looked around in the forums and the documentation for an answer for a bit and couldn't find anything so I thought I'd post.  We're a really large organization (currently approaching 7000 pages) and we'll be subdivided quite a bit within the Sitefinity architecture.  For instance one of our 3 top level organizations is the College of Medicine consisting of 17 or so departments each with heavy content on their own individual sites.

    I couldn't seem to find a way to filter a search based upon where you are in the hierarchy.  For instance besides the College of Medicine we also have a Clinical Services section consisting of Adult and Children's as well as Hospital Services etc.. I'm wanting to provide a potential medical student who is on a department page under the College of Medicine to be able to search only on that site's page and all pages below it OR be able to toggle they want to search the whole site including other content items like Blogs and News and such.  I'm willing to do some dev work on this I'm just wondering where I should start.  
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    18 Sep 2017
    31 Aug 2011
    Link to this post
    Hello Tony,

    The search which comes with Sitefinity out of the box is indexing the content in all pages.

    For customized search you have to implement a custom pipe. You can see how the TxtDocumentSearchInboundPipe in the sample project from  Publishing system brief walkthrough.  This is creating a pipe that will push the items into the search index when they are published. The only requirement is to be published by the fluent api. You have to implement PushData and ToPublishingPoint. Those methods will actually put the item into the publishing point. Note that you have to add some settings / mappings as it was explained in Registering custom pipes in Sitefinity

    Stanislav Velikov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

2 posts, 0 answered