Query Expansion Based on Crowd Knowledge for Code Search
Not on the map. Why?
Abstract (arXiv)
As code search is a frequent developer activity in software development practices, improving the performance of code search is a critical task. In the text retrieval based search techniques employed in the code search, the term mismatch problem is a critical language issue for retrieval effectiveness. By reformulating the queries, query expansion provides effective ways to solve the term mismatch problem. In this paper, we propose Query Expansion based on Crowd Knowledge (QECK), a novel technique to improve the performance of code search algorithms. QECK identifies software-specific expansion words from the high quality pseudo relevance feedback question and answer pairs on Stack Overflow to automatically generate the expansion queries. Furthermore, we incorporate QECK in the classic Rocchio's model, and propose QECK based code search method QECKRocchio. We conduct three experiments to evaluate our QECK technique and investigate QECKRocchio in a large-scale corpus containing real-world code snippets and a question and answer pair collection. The results show that QECK improves the performance of three code search algorithms by up to 64 percent in Precision, and 35 percent in NDCG. Meanwhile, compared with the state-of-the-art query expansion method, the improvement of QECK Rocchio is 22 percent in Precision, and 16 percent in NDCG.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). First posted on arXiv 4 Mar 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 6; 2023: 3; 2024: 1; 2025: 1; 2026: 3.
18 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 75
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 22
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
- 2023Backdooring Neural Code Searchcited by 19
- 2024Rewriting the Code: A Simple Method for Large Language Model Augmented Code Searchcited by 17
- 2022Code Search based on Context-aware Code Translationcited by 14
- 2023Rethinking Negative Pairs in Code Searchcited by 14
- 2022Exploring Representation-Level Augmentation for Code Searchcited by 8
- 2022Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detectioncited by 6
- 2021Automated Query Reformulation for Efficient Search based on Query Logs From Stack Overflowcited by 4
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agentscited by 4
6 more
- 2021BERT2Code: Can Pretrained Language Models be Leveraged for Code Search?cited by 2
- 2021A Systematic Review of Automated Query Reformulations in Source Code Searchcited by 2
- 2025OASIS: Order-Augmented Strategy for Improved Code Searchcited by 2
- 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Treescited by 1
- 2026Beyond Static: Related Questions Retrieval Through Conversations in Community Question Answeringcited by 0
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignmentcited by 0
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026Beyond Static: Related Questions Retrieval Through Conversations in Community Question Answering9 Mar 2026
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agents5 Mar 2026
- 2025OASIS: Order-Augmented Strategy for Improved Code Search11 Mar 2025
- 2024Rewriting the Code: A Simple Method for Large Language Model Augmented Code Search9 Jan 2024
- 2023Rethinking Negative Pairs in Code Search12 Oct 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Backdooring Neural Code Search27 May 2023
- 2022Exploring Representation-Level Augmentation for Code Search21 Oct 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2022Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detection25 Feb 2022
- 2022Code Search based on Context-aware Code Translation16 Feb 2022
6 more
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Search26 Jan 2022
- 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Trees20 Jan 2022
- 2021A Systematic Review of Automated Query Reformulations in Source Code Search22 Aug 2021
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answering27 May 2021
- 2021BERT2Code: Can Pretrained Language Models be Leveraged for Code Search?16 Apr 2021
- 2021Automated Query Reformulation for Efficient Search based on Query Logs From Stack Overflow1 Feb 2021
- 2023Backdooring Neural Code Searchcited by 19
- 2023Backdooring Neural Code Search27 May 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 75
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 22
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
- 2024Rewriting the Code: A Simple Method for Large Language Model Augmented Code Searchcited by 17
- 2022Code Search based on Context-aware Code Translationcited by 14
- 2023Rethinking Negative Pairs in Code Searchcited by 14
- 2022Exploring Representation-Level Augmentation for Code Searchcited by 8
- 2022Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detectioncited by 6
- 2021Automated Query Reformulation for Efficient Search based on Query Logs From Stack Overflowcited by 4
- 2021BERT2Code: Can Pretrained Language Models be Leveraged for Code Search?cited by 2
- 2021A Systematic Review of Automated Query Reformulations in Source Code Searchcited by 2
12 most cited of 16 All 16 (JSON)
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026Beyond Static: Related Questions Retrieval Through Conversations in Community Question Answering9 Mar 2026
- 2025OASIS: Order-Augmented Strategy for Improved Code Search11 Mar 2025
- 2024Rewriting the Code: A Simple Method for Large Language Model Augmented Code Search9 Jan 2024
- 2023Rethinking Negative Pairs in Code Search12 Oct 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2022Exploring Representation-Level Augmentation for Code Search21 Oct 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2022Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detection25 Feb 2022
- 2022Code Search based on Context-aware Code Translation16 Feb 2022
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Search26 Jan 2022
- 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Trees20 Jan 2022
12 newest of 16 All 16 (JSON)