More in this section
Forums / General Discussions / SF 5.1 MVC & Search

SF 5.1 MVC & Search

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. Jonathan
    Jonathan avatar
    26 posts
    Registered:
    23 Jul 2012
    27 Jul 2012
    Link to this post
    How do I modify / create a search index so that it can search content in an MVC section of the site?

    For example, given the MVC Music Store sample, how would I implement a search to search for freetext on any of the pages, and an advanced search to search for genre?

    Also, I've looked through the documentation (that I can find) and haven't found much for working with Lucene / search in Sitefinity. Could someone please point me to some resources?

    Many thanks in advance

    Jonathan
  2. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    30 Jul 2012
    Link to this post
    Are you talking about text embedded in the Razor/HTML view pages? or text from the Sitefinity database inserted into the view?
  3. Jonathan
    Jonathan avatar
    26 posts
    Registered:
    23 Jul 2012
    30 Jul 2012
    Link to this post
    I guess technically it's content in a database -- not necessarily even the Sitefinity db. Ideally, the results would come back with some context, though, and contain some of the view markup -- though I can understand this might not be possible.

    So in the MVC music store sample, if I searched for Beethoven, I would expect to get links to the specific album pages that have Beethoven albums, as well as a link to the "classical" /genre page that lists the Beethoven albums. The data for these pages lives in an external database.
  4. Steve
    Steve avatar
    1 posts
    Registered:
    13 Jun 2012
    31 Jul 2012
    Link to this post
    Because this is an external DB, it could be a while before a tool like this is built for Sitefinity however it surely opens the door for someone to add this to the Sitefinity Marketplace.  In the meantime, I would highly ecommend looking at http://incubator.apache.org/lucene.net/ which is what Sitefinity search index is based on.  I would also add this feature to the public tracking system. 
    http://www.telerik.com/support/pits.aspx#/main/Release=AllReleases/Product=sitefinity
    I hope this helps.
4 posts, 0 answered