Dynamically Select Result Source in SharePoint 2013

Hi,
I have a requirement to search content within a set of site collections based on user's locale. For each country we have multiple site collections. When user performs search, based on the language of the user, it should show only those  results from
site collection that belong to a specific country.
I am thinking to create Result Source and add multiple "Path:<url>" parameters inside each result source. Is this a correct approach? If yes, how can I set the correct result source dynamically based on user's locale?
Is there any other approach?
Any pointers will be helpful.
Bidyut Das

You can always create Search scope of all countries and make sure that results is displayed from that scope.
However User need to provide a input to select the scope for his country. Try to use below script to pull locale and then use it in scope:
http://sharepointerz.blogspot.in/2013/06/get-current-users-regional-settings.html

Similar Messages

  • Office web Apps preview of SharePoint 2010 source in SharePoint 2013 search results

    Hi Team,
    We have crawled SharePoint 2010 source in SharePoint 2013 and able to get results successfully. Now our requirement is to show Office Web Apps previes of 2010 documents in 2013 search results.
    Any guidance on this please.
    Thanks,
    Manjeera

    Hi,
    Take a look at this blog post on how to do this: http://blogs.msdn.com/b/murads/archive/2012/10/11/utilizing-web-apps-2010-to-get-powerpoint-previews-of-sharepoint-2010-content-from-sharepoint-2013-search.aspx
    Thanks,
    Mikael Svenson
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Powerpivot Data Refresh Not working with Oracle Data Source in sharePoint 2013

    I am using SQL Server 2012 PowerPivot for Excel 2010. Getting the following error in SharePoint 2013 environment, when using Oracle data source within a workbook -
    EXCEPTION: Microsoft.AnalysisServices.SPAddin.DataRefreshException: Engine error during processing of OLE DB or ODBC error: The specified module could not be found..:
    <Site\PPIV workbook>---> Microsoft.AnalysisServices.SPAddin.DataRefreshException: OLE DB or ODBC error:
    The specified module could not be found..   
     at Microsoft.AnalysisServices.SPAddin.DataRefresh.ASEngineInstance.ProcessDataSource(String server, String databaseName, String datasourceName, SecureStoreCredentialsWrapper
    runAsCredentials, SecureStoreCredentialsWrapper specificConfigurationCredentials, DataRefreshService dataRefreshService, String fileUrlForTracing)     -
    -- End of inner exception stack trace ---   
     at Microsoft.AnalysisServices.SPAddin.DataRefresh.ASEngineInstance.ProcessDataSource(String server, String databaseName, String datasourceName, SecureStoreCredentialsWrapper
    runAsCredentials, SecureStoreCredentialsWrapper specificConfigurationCredentials, DataRefreshService dataRefreshService, String fileUrlForTracing)   
     at Microsoft.AnalysisServices.SPAddin.DataRefresh.DataRefreshService.ProcessingJob(Object parameters)
    I created a simple Excel 2013 PPIV workbook with an oracle data source and uploaded that to SharePoint 2013, but no change in the results - still getting the above error.
    What is this error? We have installed Oracle client (64-bit, since we use 64-bit Excel and Sp is also 64-bit) on SSAS PPIV Server and SharePoint Content DB Server. Do we need
    to install it anywhere else?
    Thanks,
    Sonal

    Hi Sonal,
    To use PowerPivot for SharePoint on SharePoint 2013, it is required to install PowerPivot for SharePoint with the Slipstream version of SQL Server 2012 SP1. If you install SQL Server 2012 and then use the upgrade version of SQL Server 2012 SP1 to upgrade,
    the environment will not support SharePoint 2013.
    I would suggest you refer to the following articles:
    Install SQL Server BI Features with SharePoint 2013 (SQL Server 2012 SP1):
    http://technet.microsoft.com/en-us/library/jj218795.aspx
    Upgrade SQL Server BI Features to SQL Server 2012 SP1:
    http://technet.microsoft.com/en-us/library/jj870987.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Customize search result types in SharePoint 2013

    Hi
    I want to create the new Search Result types based on existing "List SharePoint Item" result type. I know how to do it manually . But i want it to automate it. can i do it using powershell script? is there anything available or somebody tried anything
    in this direction?
    So my requirement is bascially create the Result type with custom display template. Please suggest how to do using powershell script or sharepoint object model.
    Thanks

    Hi,
    According to your description, my understanding is that you want to create search result source programmatically in SharePoint 2013.
    Here are some links about creating search result source programmatically for you to take a look:
    http://sadomovalex.blogspot.com/2014/04/create-custom-search-result-source.html
    http://blog.tippoint.net/create-result-source-with-powershell-sharepoint-2013/
    http://mksharepointblogs.wordpress.com/2014/01/16/create-result-source-programmatically-in-sharepoint-2013/
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • How to delete Content Source in Sharepoint 2013 Search Service

    I want to delete Default Content Source in Search
    Service in SharePoint 2013 but delete button is disable?Please see the below image. Content Source Type=SharePoint Sites
    How to do it?
    If In Content Source type=Files than delete button enables but
    not for the Content Source type=Sharepoint sites
    Vishal Goyal

    Hi,
    try to remove it using powershell
    $searchapp = Get-SPEnterpriseSearchServiceApplication "NameofSearchAPp"
    Remove-SPEnterpriseSearchCrawlContentSource -SearchApplication $searchapp -Identity "Name"\Regards
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Error with OpenSearch result source in Sharepoint online

    I have error with result sources that use the Opensearch protocol. I add them via Site Settings -> Edit Result Source -> New Result Source but everytime I test them in the Result Sources list I get error saying
    key is null or empty
    Parameter name: key
    This same happens every time regardless of the source Url. I've tried with sources like Live Search (Copied the url from the preset source "InternetSearchResults"), and other sources I've found from documentation and examples for Opensearch
    feature.
    Also, the error message is always the same when testing the Result Sources from the Result Source list, Query Builder or searching from Sharepoint site.

    I am having the same issue on o365 E3... any input on this? I have tried on 2 different envs.
    Danimal521 MCPD/MCAD

  • Is Quick View (preview of file contents under search results) supported in SharePoint 2013 Foundation?

    We recently deployed SharePoint 2013 Foundation but can't make Quick View (seeing the contents of a file when you hover the mouse cursor over it) work in the search results.
    All Site Collection/Site Features are turned on.  Not sure what else to do.
    Does anyone have this feature working in SharePoint 2013 Foundation?
    Thank you!

    Hi Charlie,
    To view the Preview of the Search Results you need to Install/Configure Office Web Apps Server in your farm.
    Please check the below links for reference.
    http://technet.microsoft.com/en-us/library/ee855124(v=office.15).aspx
    http://technet.microsoft.com/en-in/library/ff431687(v=office.15).aspx
    If you think is helpful,Vote As Helpful! And if you see a reply being an answer to the question of the thread, click Mark As Answer.
    Mahesh

  • Can you refine people search results using a SharePoint 2013 search service application connected in SharePoint 2010?

    We have an SP2010 farm which is now using some of the service applications from an SP2013 farm, including the search, managed metadata and user profile.  This is part of an upgrade programme of work which will involve upgrading infrastructure and
    then gradually the sites, and this is seen as one way to minimise the impact.
    So, the SP2010 search results are being generated by the SP2013 which is indexing the SP2010 content.  The initial results appear fine, however, the refiners in the people results for Job Title and Department are no longer working.  We are receiving
    a 404 page not found, even though the page is there as was working before.
    If we compare the URL generated in SP2010 for refining results to an OOTB SP2013 search centre site, there is clearly a big difference to the format.  Example below is where LastName is Smith and then refined where Department is HR.
    SP2010 URL which now gives a 404 error:
    http://intranet2010/search/pages/peopleresults.aspx?k=LastName%3Asmith&r=%22owstaxIdSPShDepartment%22%3D%23832e3479%2Dd168%2D4620%2Dac69%2D9b00a4c4205b%3A%22HR%22
    OOTB SP2013 URL:
    http://intranet2013/search/pages/peopleresults.aspx?k%3Asmith#Default=%7B%22k%22%3A%22smith%22%2C%22r%22%3A%5B%7B%22n%22%3A%22Department%22%2C%22t%22%3A%5B%22%5C%22%C7%82%C7%824335%5C%22%22%5D%2C%22o%22%3A%22and%22%2C%22m%22%3Anull%2C%22k%22%3Afalse%7D%5D%7D
    I've looked at the URL decoded versions so can see how the query is built up.
    Any ideas?  Is this even possible?
    Matt

    All working now.  Turns out there was an entry in the web.config which was causing issues.
      <denyQueryStringSequences>
          <add sequence="ID" />
      </denyQueryStringSequences>
    Seems IIS is denying something in the query string.  We removed the whole section as was not needed.
    http://www.iis.net/configreference/system.webserver/security/requestfiltering/denyquerystringsequences
    Thanks to a colleague who spotted this; I would've never of thought to check the web.config for something like this.

  • How to configure Search for a site in sharepoint 2013?

    Hi,
    I had a document library.
    1)I want to configure search so that I can search documents from previous month, quarterly, half year, year, and all documents is possible.
    2)Search results are organized with most recent documents at the top.
    3)Search results have year as refiner that can be used to show results only from specified year (In library we have field with year when document create)
    To achieve this what I have chane in site settings->search
    and what I have to write for Result Types, Query Rules
    Thanks

    Hi,
    Following are the steps you need to perform for creating the search center.
    http://blogs.technet.com/b/tothesharepoint/archive/2013/10/30/set-up-a-search-center-in-sharepoint-2013.aspx (About Search)
    1. Create the site collection by navigating to the CA(Central Admin) & select the Enterprise Search Center Template.
    2. Create Content Source -> Navigate to the Search Service application->Create the content source if the content comes from other content farm (if different farm accout  if it same add the site Collection URL in default Content Source. ( make
    sure the crawl account must have full read permission)
    http://blogs.technet.com/b/tothesharepoint/archive/2013/10/31/how-to-create-a-search-center-site-collection-and-enable-crawling-of-your-content-in-sharepoint-2013.aspx (Create
    Search Center)
    3. Once you add url in the content source and run the full crawl.
    4. Navigate to the Search center created at step 1 and try to search with the document name. you will see the document.
    http://blogs.technet.com/b/tothesharepoint/archive/2013/11/06/how-to-configure-the-search-results-web-part-to-use-a-new-result-source-in-sharepoint-2013.aspx (Go
    to the document Library and configure the result source)
    5. To configure the refiner please follow this post. You will see the modified refiner to refine your search http://blogs.technet.com/b/tothesharepoint/archive/2013/11/07/plan-to-use-refiners-on-a-search-results-page-in-sharepoint-2013.aspx)
    Let me know if you req. any other information.
    Regards,
    Basant Pandey
    http://sharepointfordeveloper.blogspot.com

  • SharePoint 2013 Enterprise Search and Document ID service

    Hello,
    as I understand search scopes are now deprected in SharePoint 2013 and I cannot add any new custom search scopes.
    My problem is that on the document ID settings page, where I can choose the search scope, I can only see the deafult "All Sites" search scope.
    Is there any way to add custom search scopes in SharePoint 2013, or make my default document ID provider use result sources insted of search scopes?
    Any suggestions would be greatly appreciated!
    Thank you.
    Dimitar

    Hi Dimitar,
    Document IDs help you manage your documents by providing an easy way to track items regardless of their location. Even if a document is moved to another site, renamed or copied, it retains its Document ID. You can use the Document ID to easily locate it.
    Document ID’s are automatically assigned to uploaded documents and this ID will follow the item throughout its whole life cycle. Consequently, Document ID should be unique among all sites, so that it won’t duplicated when documents moved among sites.
    Document ID Lookup Search Scope allows a specific search scope to be used to look up documents using their IDs. The default search scope is “All sites” as you see, it means if you search certain document id, you are searching it among all
    sites. If you would like to custom search scope for it, I’d recommend you create custom result source for it in Search Service Application. Although it is workaround, it might be more flexible and easier to achieve.
    Here are some good articles for build search result sources in SharePoint 2013 for your convenience:
    http://blogs.technet.com/b/tothesharepoint/archive/2012/10/09/build-a-specialized-search-experience-in-minutes-with-sharepoint-2013.aspx
    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Federation search in sharepoint 2013

    I am having issue getting proper results with bing search in sharepoint 2013. The search link which i am using is :
    --http://www.bing.com/search?q={?searchterms}&format=rss&Market=en-Us Credentials--
    I am passing the searchterms from the code :
    KeywordQuerykeywordQuery =
    newKeywordQuery(clientContext);
      keywordQuery.QueryText = "tender or road Site:http://www.kenha.co.ke/";
    clientContext.ExecuteQuery();
    the above code is not returning proper results. When i checked the log files the search is happening in the following way
    --bing.com/search?q=((tender+AND+or+AND+road)+AND+)&format=rss&Market=en-us--
    the query text which i am passing from the code is getting converted from :
    "tender or road Site:http://www.kenha.co.ke/"
    to
    (tender+AND+or+AND+road)+AND+
    i am new to search and i dont know how the querttext got changed. If any one has any ideas on how to fix the issue please let me know.

    Hi Jaskau,
    please have a check at this blog for example: 
    http://3sharp.com/blog/build-a-federated-result-source-for-sharepoint-2013-search-part-1/
    http://3sharp.com/blog/build-a-federated-result-source-for-sharepoint-2013-search-part-2/
    and please make sure that the result of the simple search work correctly.
    if should the result is expected, perhaps you can try this method
    http://msdn.microsoft.com/en-us/library/microsoft.office.server.search.administration.managedpropertyinfo.completematching.aspx
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to filter list items by current system time in search result wp or result source SharePoint 2013

    I want to display Items with PressDate less than or equal
    to current time in my search result webpart in SharePoint 2013.
    It is working fine for current date but not considering current time.
    {searchTerms} ContentType="ABC" PressDateTime<{Today+1}
    Above query not supporting for Now(), due to that it
    is showing items which are less than or equal to current (today's) date.
    How can I compare time with current system Time?..Thanks in advance.
    Regards, --NP

    You can achieve the same by using a Current Date Offset in a CAML Query to Filter List Items.
    Have below links for your reference.
    Sharepoint Tips And Tricks
    CAML Query to Date prior to 30 days from today
    Thanks.

  • SharePoint Search Result Source Filter By Variance

    Hi,
    I want to get pages library data by language (English and German). I have created two result source in sharepoint search. In Query transform I have given below condition. But it is not filtering data as per language wise. I only want to get English variance
    site data in EnglishResultSource1 and German variance site data in GermanResultSource2.
    EnglishResultSource1
    {searchTerms} contentclass=STS_ListItem_850 -Path=http://spe2013dev5:1111/en-us/
    GermanResultSource2
    {searchTerms} contentclass=STS_ListItem_850 -Path=http://spe2013dev5:1111/de-de/
    But in result source it is not filtering data by path wise.
    How can I filter by language/locate wise?
    Can any one help me?

    Check if below can help
    http://blogs.msdn.com/b/bgeoffro/archive/2009/05/24/using-custom-scopes-on-multilanguage-variation-sites.aspx
    http://blogs.msdn.com/b/fabdulwahab/archive/2012/06/02/how-to-create-multilingual-search-site-with-variation.aspx
    If this helped you resolve your issue, please mark it Answered

  • Use Querystring to define result source for searching

    I am migrating a site from SP2010 to SP2013. One of page contain a search result webpart. By define the querystring like this:
    SearchResult.aspx?k=Scope:Hotnews
    It will return only the defined scope results.
    However, SP2013 no longer provide Scope. Can I perform similiar trick with querystring? I have setup a Result Source "Hotnews" on my SP2013 farm. But I don't know the syntax in querystring or is it even supported. Could you please guide me? Thanks.

    Hi  Mark,
    According to your description, my understanding is that you want to set the result source of your search result web part to a custom result source "Hotnews" in SharePoint Server 2013.
    For achieving  your demand, you can limit search results of your search result web part as below shows:
    Reference:
    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html
    Also you can have a look at these blogs:
    http://www.eliostruyf.com/dynamically-changing-result-source-sharepoint-2013-search-center/
    http://blog.mastykarz.nl/programmatically-working-keyword-search-queries-sharepoint-2013/
    http://technologybooth.blogspot.com/2013/08/keyword-query-in-sharepoint-2013.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Search SharePoint 2013 On-Prem with Office 365

    We're trying to understand federated search in SharePoint 2013, when it comes to Office 365. We have both a SharePoint 2013 on-prem environment, and an Office 365 environment. The 2 are completely separate, and have not been configured to use a hybrid model.
    Is it possible to configure a Result Source in either the SharePoint environment or the Office 365 environment to index the other? Reading this
    article from Technet, it indicates that you can configure a remote SharePoint farm as a Result Source:
    "Remote SharePoint provides
    results from the index of a search service in another farm."
    But I've read on another
    thread on here that this is not possible from O365. 
    I'm hoping that someone can provide some guidance, or point me in the right direction.
    Thanks,
    cflbasser

    Yes, you can receive search results from an on-premise SharePoint Server 2013 farm within SharePoint Online.
    Hybrid search between SharePoint Server and SharePoint online uses federated search results. Neither the on-premise farm nor SPO crawl the other location, they just send a federated search query over the fence and wait for the results.
    You can search in either direction (one-way hybrid search) or both ways (bidirectional hybrid search).
    The one-way search can either be SharePoint Server sending search queries to SPO or SPO sending queries to SharePoint Server which also needs a reverse proxy for securely publishing your on-premise farm to SPO.
    Bi-directional hybrid search just combines both one-way methods together so either location can receive search results from the other location.
    Here are some further resources to help you plan and implement hybrid search:
    Hybrid for SharePoint Server 2013 
    Configure hybrid Search for SharePoint Server 2013 
    Chris O'Brien has an excellent article that describes the actual search experience. Check out Office 365 SharePoint hybrid - what you
    DO and DO NOT get 
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

Maybe you are looking for

  • Running Motion 2.0.1 on the new 20inch Pentium Imacs

    Hi, I am on a committe at my school that does video production work. We just got the new 20 inch pentium imac. We had the Final Cut Studio 5 set and we installed it on there. We checked to make sure everything went okay but we had one problem, motion

  • Problem in run remote client with appclient

    I am having problems to execute remote clients (remote machines) using script of client conteiner: appclient. Local it functions perfectly, however when executed in a remote machine, the application not run wheel. Thanks!

  • How to copy the Planned GI date as the pricing date in Invoice

    Hi!!, For this requirement we want the price the product based on the Planned GI date and not the actual GI date...For some case when Planned GI date was early and we shipped late.It means we would be creating the Invoice later than the Planned GI da

  • How can I update GE70 BIOS for Wındows 7 ?

    -I download BIOS for Windows 7 x64(E1759IMS.620) -Format USB FAT32 FS and copy BIOS files. What do I do after now? Win7 is not supported UEFI update, Do I update DOS ?

  • Mamiya ZD camera maker tags

    Mamiya digital photo stuidio allows to see the following information extracted from MEF raw file: File Name                     : MMFC0998.MEF File Size                     : 34.88MB Format                        : Mamiya Raw Image Pixels