{"meta":{"title":"Troubleshooting search queries","intro":"If you encounter unexpected results while searching on GitHub, you can troubleshoot by reviewing common problems and limitations.","product":"Search on GitHub","breadcrumbs":[{"href":"/en/search-github","title":"Search on GitHub"},{"href":"/en/search-github/getting-started-with-searching-on-github","title":"Start with search on GitHub"},{"href":"/en/search-github/getting-started-with-searching-on-github/troubleshooting-search-queries","title":"Troubleshoot search queries"}],"documentType":"article"},"body":"# Troubleshooting search queries\n\nIf you encounter unexpected results while searching on GitHub, you can troubleshoot by reviewing common problems and limitations.\n\n## Potential timeouts\n\nSome queries are computationally expensive for our search infrastructure to execute. To keep search fast for everyone, we limit how long any individual query can run. In rare situations when a query exceeds the time limit, search returns all matches that were found prior to the timeout and informs you that a timeout occurred.\n\nReaching a timeout does not necessarily mean that search results are incomplete. It just means that the query was discontinued before it searched through all possible data.\n\n## Limitations on query length\n\nThere are some limits to the length of the queries when searching across GitHub:\n\n* Queries longer than 256 characters are not supported\n* You can't construct a query using more than five `AND`, `OR`, or `NOT` operators\n\nSpecific search types, such as code search, might have additional limitations. Check the documentation for these search types for more information.  For more information on code search limitations specifically, see [About GitHub Code Search](/en/search-github/github-code-search/about-github-code-search#limitations).\n\n## Further reading\n\n* [About searching on GitHub](/en/search-github/getting-started-with-searching-on-github/about-searching-on-github)"}