close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple Site Search?

Thread began 10/19/2011 11:01 pm by jenmerie431472 | Last modified 10/31/2011 1:10 pm by Jason Byrnes | 3843 views | 15 replies |

jenmerie431472

Multiple Site Search?

Hello,

First, I just want to thank you for creating this application to help the less programming savvy. I also appreciate that this tool is free. (Going to recommend this site to friends!)

I was able to successfully create the search engine, but I was wondering if there was a way to search more than one site. Let's say for instance, I have two webpages covering two different topics (on seperate domains), but I want the user to be able to search both and only those two?

I'm pretty sure I can't add a second link in the Wizard, but I did open up the javascript file. I saw the variable bing_sites , is there a way to add another link there somehow? I tried everything, I even went as far as creating another variable called bing_sites2. I went to the encodeURIComponent section and added my second variable in the parenthesis with a + and it still didn't work.

I would really appreciate help on this one. Thank you!!!

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/bing/bing_search_tk.js file, you would need to edit the bing sites variable to include the second domain using an OR separator, for example:

var Bing_sites = "www.yourdomain.com";

would need to be changed to:
var Bing_sites = "www.yourdomain.com OR site:www.yourOtherDomain.com";

Sign in to reply to this post

info396563

Hi Jason

Can you add multiple websites via this method so that there will be search results from more than one website?

Thanks

Scott

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you can add more OR site:newdomain to add more sites to the search.

Sign in to reply to this post

jenmerie431472

Thanks for the info!!

Sign in to reply to this post

jenmerie431472

Quick Question..

I added it the way you suggested, It does include both sites when I search, but it doesn't seem to search for the keyword. It displays results, but its not the results I searched for. Any suggestions? Thanks again!

Sign in to reply to this post

Jason ByrnesWebAssist

are you sure it's not the results you searched for? The Bing Search engines searches on the page content, the pages meta keywords tag, the pages description tag and the title.


Can you send a link where i can test this? What is the search term you are using?

Sign in to reply to this post

info396563

Just so I can understand this properly, if I change the JavaScript to read like the example below this would then provide search information on those sites on my search results page?

var Bing_sites = "www.bbc.co.uk OR site:www.sky.com OR site:www.webassist.com";

Thanks

Scott

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is correct Scott.

Sign in to reply to this post

info396563

Thanks Jason

regards

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...