Summary: A query cannot be infinitely long. The following limits exist:
- The length of an individual query term
- How many terms are allowed
- How long the entire request can be
This information is available in Request Limitations.
Additional Information: You can further limit the number of query terms by going to Search > Search Features > Query Settings page in Admin Console in the Admin Console and modifying the Maximum Number of Query Terms value.