Re: API google search

81 views
Skip to first unread message

Jeremy Geerdes

unread,
Aug 2, 2012, 11:14:01 PM8/2/12
to google-ajax...@googlegroups.com
Are you wanting the pdf file to not be returned in your search results? Or are you wanting the pdf file to be excluded from Google's index altogether?

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 2, 2012, at 8:06 PM, Escaler Cunan wrote:

Hello i have google search api on my website

they crawl all my file include the pdf file.

how can not involve the  pdf file to api search

i dont like result pdf.  any one knows


using a jvascrip
  <script type="text/javascript">
        google.load('search', '1');
        google.setOnLoadCallback(function(){
                                         
    var customSearchControl = new google.search.CustomSearchControl




i want not include result the pdf file

--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/OfmNhPWAAHYJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Escaler Cunan

unread,
Aug 2, 2012, 11:22:26 PM8/2/12
to google-ajax...@googlegroups.com
will not display the pdf in my result.




i just use robot.txt

disallow the pdf files


how about the   control the searching api google



On Friday, August 3, 2012 11:14:01 AM UTC+8, jgeerdes [AJAX APIs "Guru"] wrote:
Are you wanting the pdf file to not be returned in your search results? Or are you wanting the pdf file to be excluded from Google's index altogether?

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 2, 2012, at 8:06 PM, Escaler Cunan wrote:

Hello i have google search api on my website

they crawl all my file include the pdf file.

how can not involve the  pdf file to api search

i dont like result pdf.  any one knows


using a jvascrip
  <script type="text/javascript">
        google.load('search', '1');
        google.setOnLoadCallback(function(){
                                         
    var customSearchControl = new google.search.CustomSearchControl




i want not include result the pdf file

--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to

To unsubscribe from this group, send email to

Jeremy Geerdes

unread,
Aug 2, 2012, 11:31:35 PM8/2/12
to google-ajax...@googlegroups.com
Well, you may be able to use -inurl or -filetype search operators, but in my experience, using advanced search operators with the Search API is unpredictable and inconsistent. And quite often ends up returning no results at all.

Actually, you may find more luck with the Custom Search API rather than the Custom Search Control. If your traffic isn't too high, I believe you can set up the underlying CSE to exclude pdf files from your search results.


Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!


To unsubscribe from this group, send email to

To view this message on the web, visit
Reply all
Reply to author
Forward
0 new messages