AND 연산자 사용
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
AND
연산자를 사용해 여러 검색어를 검색할 수 있습니다. 이 연산자는 연산자의 양쪽에 있는 검색어가 모두 참인 경우에만 결과를 반환합니다.
용어를 여러 개 검색하는 경우에는 AND
가 묵시적으로 사용됩니다. 예를 들어 다음 검색은 검색어 server
가 포함된 Python 파일을 반환합니다.
server lang:python
또는 AND 연산자를 명시적으로 제공할 수 있습니다. 예를 들면 다음과 같습니다.
server AND lang:python
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eMultiple terms in a search are implicitly linked by \u003ccode\u003eAND\u003c/code\u003e, meaning results must contain all terms.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAND\u003c/code\u003e can be explicitly used for clarity but functions identically to implicit multiple term searches.\u003c/p\u003e\n"],["\u003cp\u003eSearches can use operators like \u003ccode\u003elang:\u003c/code\u003e to refine results based on specific criteria such as programming language.\u003c/p\u003e\n"]]],[],null,["# Using the AND operator\n\nYou can search for multiple terms by using the [`AND`](../reference#operators)\noperator. This operator returns results only when the terms on both sides of the\noperator are true.\n\nA search for multiple terms uses `AND` implicitly. For example, the following\nsearch returns Python files that contain the term `server`: \n\n server lang:python\n\nAlternatively, you can supply the AND operator explicitly. For example: \n\n server AND lang:python"]]