Ask a questionAsk a question
 

AnswerHow to implement Bing Search to sharepoint

  • Friday, November 06, 2009 7:33 PMJouni1979 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello everybody,

    Is it possible to implement Bing Search to Moss 2007 and desktop search.Is there webpart for it or somethink

    Jouni
    • Moved byMike Walsh MVPMVP, ModeratorFriday, November 06, 2009 7:41 PMasking for a ready-made web part (From:SharePoint - Development and Programming)
    •  

Answers

  • Saturday, November 07, 2009 7:07 AMMichael Nemtsev [MVP]MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
  • Sunday, November 08, 2009 4:42 PMMike Smith MCT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code

    Are you asking:

    1. About using Bing as a federated search (in a single search, search both MOSS using MOSS and the web using Bing)
    2. About using Bing to do the search of SharePoint content (an internet facing SharePoint site for example)
    3. About adding a web part to a SharePoint so users can search the internet using Bing (not to use Bing to search your SharePoint sites

    1) Michael's link is about federated search. Also "bing" "sharepoint federated search bing".

    2) If you want to use Bing to search an internet facing SharePoint site look here by replacing the default SharePoint search box:
    http://techtrainingnotes.blogspot.com/2009/07/sharepoint-custom-search-boxes-google.html

    2 & 3) If you would like to add a web part for general internet searching try this:
     Add a Content Editor Web Part
     Modify the web part and click the Source Editor button
     Paste the following HTML and JavaScript (displays a search box and button)
     (To search just your site, edit "site:www.maxtrain.com" with your site name)
     (To search all of the internet, delete ' + " site:www.maxtrain.com"  '
     (edit to your needs, open a popup window, etc)

    Search Bing! <input name="q" type="text"/>
    <a href="" onclick="javascript:BingSearch();return false"><img src="/_layouts/images/gosearch.gif"/></a>
    
    <script>  
    function BingSearch()  {
        document.location.href="http://www.bing.com?q=" + 
         document.all("q").value + " site:www.maxtrain.com"  }
    </script>
    
    

    Mike Smith TechTrainingNotes.blogspot.com

All Replies

  • Saturday, November 07, 2009 7:07 AMMichael Nemtsev [MVP]MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
  • Sunday, November 08, 2009 4:42 PMMike Smith MCT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code

    Are you asking:

    1. About using Bing as a federated search (in a single search, search both MOSS using MOSS and the web using Bing)
    2. About using Bing to do the search of SharePoint content (an internet facing SharePoint site for example)
    3. About adding a web part to a SharePoint so users can search the internet using Bing (not to use Bing to search your SharePoint sites

    1) Michael's link is about federated search. Also "bing" "sharepoint federated search bing".

    2) If you want to use Bing to search an internet facing SharePoint site look here by replacing the default SharePoint search box:
    http://techtrainingnotes.blogspot.com/2009/07/sharepoint-custom-search-boxes-google.html

    2 & 3) If you would like to add a web part for general internet searching try this:
     Add a Content Editor Web Part
     Modify the web part and click the Source Editor button
     Paste the following HTML and JavaScript (displays a search box and button)
     (To search just your site, edit "site:www.maxtrain.com" with your site name)
     (To search all of the internet, delete ' + " site:www.maxtrain.com"  '
     (edit to your needs, open a popup window, etc)

    Search Bing! <input name="q" type="text"/>
    <a href="" onclick="javascript:BingSearch();return false"><img src="/_layouts/images/gosearch.gif"/></a>
    
    <script>  
    function BingSearch()  {
        document.location.href="http://www.bing.com?q=" + 
         document.all("q").value + " site:www.maxtrain.com"  }
    </script>
    
    

    Mike Smith TechTrainingNotes.blogspot.com
  • Monday, November 23, 2009 3:52 PMJouni1979 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you mike. Your tips was very helpful. I need your helop in one small teps .I need show result BingResult.aspx.This solution has one small problem.It always Redirect or Open new window.My goal is to show result in result.page.Mayby Federated search bing is answer, but i cannot find any webparts for it
    Jouni
  • Monday, November 23, 2009 5:28 PMMike Smith MCT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    What do you mean by "result.page"?

    As far as web parts, etc, are you at service pack 2 or have the Infrastructre update installed?

    Updates are here: http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx
    Mike Smith TechTrainingNotes.blogspot.com
  • Monday, November 23, 2009 6:05 PMJouni1979 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Sorry I mean Result.aspx. I mean page where do you usually show search results

    Jouni