/customsearch/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
-
12/2/19
How long is the search string in query? 0 Recommended Answers 7 Replies 2 Upvotes
1 Recommended Answer
$0 Recommended Answers
When we using Google Custom Search, we found that the q (search string) length is arount 4000 chars or 150 spaces.

But it appears differently in some scenarios, not the fixed one as the above.
Is there any documentation about this or any detailed number we could find it?

Thaks & Regards
Details
All Replies (7)
12/2/19
Hi Dev,

Thanks for your request. I'm working with the concern team to update the respective documentation with the requested information.

Thanks
marked this as an answer
Helpful?
-
12/2/19
Thanks for your reply.
Please update for me when you got the documentation
marked this as an answer
Helpful?
12/2/19
Sure.

Thanks
marked this as an answer
Helpful?
-
12/4/19
Sorry, any updates?
marked this as an answer
Helpful?
12/4/19
Hi,

Thanks for your patience.

There is no limit for search request string "q" as such when using Element V2 code provided on the CSE control panel.

Thanks
marked this as an answer
Helpful?
-
12/24/19

Is there any restriction on the search string? 
And May I know whether Custom Search V2 has the save java API now?
Could you provide it?

Thanks & Regards
marked this as an answer
Helpful?
12/24/19
Hi Dev,

The Custom Search Element V2 API is the code which we provide on the CSE control panel to be implemented on the users website. It's a simple JavaScript API. For this API, there is no limit for search request "q" parameter and full search string. Please review the documentation on CS Element API:

The other is JSON API. Google Custom Search Engine (CSE) and Custom Search API (Key enabled from Cloud Developer Console) are different product. Since there is no built-in API with CSE engine, if users want to retrieve results using JSON API, they will need to use the API key (enabled from Cloud Developer Console) alone with the CSE engine ID and query. The results will be served as per the CSE configuration.

For this API, the limit on the length of the search request should be within 2048 characters. Please review the documentation for details:

Thanks
marked this as an answer
Helpful?
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
Delete post?
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
Questions about a different Google product are no longer considered off-topic and should be moved to the relevant community.
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/customsearch/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Marked as Recommended Answer
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
/customsearch/profile/0?hl=en