Evaluating How Developers Use General-Purpose Web-Search for Code Retrieval
Not on the map. Why?
Abstract (arXiv)
Search is an integral part of a software development process. Developers often use search engines to look for information during development, including reusable code snippets, API understanding, and reference examples. Developers tend to prefer general-purpose search engines like Google, which are often not optimized for code related documents and use search strategies and ranking techniques that are more optimized for generic, non-code related information. In this paper, we explore whether a general purpose search engine like Google is an optimal choice for code-related searches. In particular, we investigate whether the performance of searching with Google varies for code vs. non-code related searches. To analyze this, we collect search logs from 310 developers that contains nearly 150,000 search queries from Google and the associated result clicks. To differentiate between code-related searches and non-code related searches, we build a model which identifies the code intent of queries. Leveraging this model, we build an automatic classifier that detects a code and non-code related query. We confirm the effectiveness of the classifier on manually annotated queries where the classifier achieves a precision of 87%, a recall of 86%, and an F1-score of 87%. We apply this classifier to automatically annotate all the queries in the dataset. Analyzing this dataset, we observe that code related searching often requires more effort (e.g., time, result clicks, and query modifications) than general non-code search, which indicates code search performance with a general search engine is less effective.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Mar 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 0; 2023: 2; 2024: 0; 2025: 0; 2026: 1.
6 papers.
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2021Retrieval Augmented Code Generation and Summarizationcited by 149
- 2023Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questionscited by 42
- 2021Multimodal Representation for Neural Code Searchcited by 11
- 2021A Systematic Review of Automated Query Reformulations in Source Code Searchcited by 2
- 2026Beyond Static: Related Questions Retrieval Through Conversations in Community Question Answeringcited by 0
- 2026Beyond Static: Related Questions Retrieval Through Conversations in Community Question Answering9 Mar 2026
- 2023Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questions4 Aug 2023
- 2023Using an LLM to Help With Code Understanding17 Jul 2023
- 2021Retrieval Augmented Code Generation and Summarization26 Aug 2021
- 2021A Systematic Review of Automated Query Reformulations in Source Code Search22 Aug 2021
- 2021Multimodal Representation for Neural Code Search2 Jul 2021