Effective Reformulation of Query for Code Search using Crowdsourced Knowledge and Extra-Large Data Analytics
Not on the map. Why?
Abstract (arXiv)
Software developers frequently issue generic natural language queries for code search while using code search engines (e.g., GitHub native search, Krugle). Such queries often do not lead to any relevant results due to vocabulary mismatch problems. In this paper, we propose a novel technique that automatically identifies relevant and specific API classes from Stack Overflow Q & A site for a programming task written as a natural language query, and then reformulates the query for improved code search. We first collect candidate API classes from Stack Overflow using pseudo-relevance feedback and two term weighting algorithms, and then rank the candidates using Borda count and semantic proximity between query keywords and the API classes. The semantic proximity has been determined by an analysis of 1.3 million questions and answers of Stack Overflow. Experiments using 310 code search queries report that our technique suggests relevant API classes with 48% precision and 58% recall which are 32% and 48% higher respectively than those of the state-of-the-art. Comparisons with two state-of-the-art studies and three popular search engines (e.g., Google, Stack Overflow, and GitHub native search) report that our reformulated queries (1) outperform the queries of the state-of-the-art, and (2) significantly improve the code search results provided by these contemporary search engines.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 23 Jul 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 1.
4 papers.
- 2021Multimodal Representation for Neural Code Searchcited by 11
- 2022Code Search based on Context-aware Code Translationcited by 11
- 2021Automated Query Reformulation for Efficient Search based on Query Logs From Stack Overflowcited by 4
- 2021A Systematic Review of Automated Query Reformulations in Source Code Searchcited by 2
- 2022Code Search based on Context-aware Code Translation16 Feb 2022
- 2021A Systematic Review of Automated Query Reformulations in Source Code Search22 Aug 2021
- 2021Multimodal Representation for Neural Code Search2 Jul 2021
- 2021Automated Query Reformulation for Efficient Search based on Query Logs From Stack Overflow1 Feb 2021