+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Site Search w/Multiple Applications

Site Search w/Multiple Applications

2 posts, 1 answered
  1. Chris Jensen
    Chris Jensen avatar
    2 posts
    Registered:
    01 Dec 2009
    14 Dec 2009
    Link to this post
    I am working with four websites that all use Sitefinity 3.6.  They are all configured as separate applications, but they use the same CMS database.  Everything works fine with one exception: Site search (using a PageIndex) returns results from all four sites.  Is it possible to easily configure this so that it will only return pages that are on the current site?  I do not have the option of creating sub-nodes for each because they are a re-skin of existing sites with existing users and the directory tree needs to remain constant.  Any help is greatly appreciated.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    14 Dec 2009
    Link to this post
    Hi Chris Jensen,

    You can modify the seach provider web.config declaration and especially -  applicationName attribute. By default the applcation name value is "/"

    sample

    <search defaultProvider="Search">
          <providers>
            <clear/>
            <add name="Search" applicationName="/WebsiteOne" type="Telerik.Search.Data.DefaultProvider, Telerik.Search.Data" connectionStringName="DefaultConnection"
                useCompoundIndexFile="true"/>
          </providers>
       ....
           .....

    You need to do the same for each website that you do not want to share the index results. After you have made some changes to the provider declaration you need to reindex the website.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
2 posts, 1 answered