Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ImageSearch
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yves Jacq  
View profile  
 More options Apr 15 2012, 5:39 pm
From: Yves Jacq <yves.j...@hedolist.com>
Date: Sun, 15 Apr 2012 14:39:35 -0700 (PDT)
Local: Sun, Apr 15 2012 5:39 pm
Subject: ImageSearch
Hello,

I'm trying to configure google custom search to only return images
from my search.
But it also returns web search!
Here is my code:

var customSearchOptions = {};
                var imageSearchOptions = {};
                imageSearchOptions['layout'] =
google.search.ImageSearch.LAYOUT_CLASSIC;
                customSearchOptions['enableImageSearch'] = true;
                customSearchOptions['filetype'] = 'jpg';
                customSearchOptions['imageSearchOptions'] = imageSearchOptions;

                var customSearchControl = new
google.search.CustomSearchControl('015544809827350742733:tb1985qexa8',custo mSearchOptions);

Can anyone help?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
omr  
View profile  
 More options Apr 16 2012, 9:19 am
From: omr <omr99...@yahoo.com>
Date: Mon, 16 Apr 2012 06:19:42 -0700 (PDT)
Local: Mon, Apr 16 2012 9:19 am
Subject: Re: ImageSearch

This won't eliminate the "Web" tab, but you can easily *default *to the
"Image" tab:

  customSearchOptions['defaultToImageSearch'] = true;

Here is the *Custom Search forum*:

https://groups.google.com/a/googleproductforums.com/forum/#!forum/cus...

https://groups.google.com/a/googleproductforums.com/forum/#!categorie...

I too have a related question (which I should probably post in that forum
rather than here).  (I'm *not *a lawyer or legal expert.)  IIUC, CSE TOS<http://www.google.com/cse/docs/tos.html>section 1.4 says we must
*not** "... inhibit the full and complete display of any Results Page ...."
* I wonder if we could *request* an exception or clarification to allow use
of CSS to conceal *tab headers* on a results page (such as the "Web" &
"Image" tab headers in this example case)?

-- omr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yves Jacq  
View profile  
 More options Apr 16 2012, 3:31 pm
From: Yves Jacq <yves.j...@hedolist.com>
Date: Mon, 16 Apr 2012 12:31:56 -0700 (PDT)
Local: Mon, Apr 16 2012 3:31 pm
Subject: Re: ImageSearch
Thanks for the tip.

But I really nead to completly remove the WebSearch tab.

Anyone has a solution?

On 16 avr, 15:19, omr <omr99...@yahoo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
omr  
View profile  
 More options Apr 16 2012, 7:25 pm
From: omr <omr99...@yahoo.com>
Date: Mon, 16 Apr 2012 16:25:22 -0700 (PDT)
Local: Mon, Apr 16 2012 7:25 pm
Subject: Re: ImageSearch

Sorry, my mistake!

I checked the documentation again, and found the option you need:

  customSearchOptions['disableWebSearch'] = true;

Problem solved.

-- omr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »