2013 · 84 citations · 31 references
ComputingComputer ScienceInformation RetrievalNatural Language ProcessingSoftware EngineeringQuery ProcessingRetrieval ModelsSoftware LocalizationBug LocalizationDocument RetrievalProximityQuery-document MatchingSearch Query Formulation
Source code retrieval plays an important role in many software engineering tasks. However, designing a query that can accurately retrieve the relevant software artifacts can be challenging for developers as it requires a certain level of knowledge and experience regarding the code base. This paper demonstrates how the difficulty of designing a proper query can be alleviated through automatic Query Reformulation (QR) - an under-the-hood operation for reformulating a user's query with no additional input from the user. The proposed QR framework works by enriching a user's search query with certain specific additional terms drawn from the highest-ranked artifacts retrieved in response to the initial query. The important point here is that these additional terms injected into a query are those that are deemed to be “close” to the original query terms in the source code on the basis of positional proximity. This similarity metric is based on the notion that terms that deal with the same concepts in source code are usually proximal to one another in the same files. We demonstrate the superiority of our QR framework in relation to the QR frameworks well-known in the natural language document retrieval by showing significant improvements in bug localization performance for two large software projects using more than 4,000 queries.
31
Introduction to information retrieval
Choice Reviews Online · 2009 · 12.6K citations
An algorithm for suffix stripping
Martin Porter · Program electronic library and information systems · 1980 · 8.1K citations
Relevance feedback in information retrieval
J. J. Rocchio · Medical Entomology and Zoology · 1971 · 2.6K citations
Relevance-Based Language Models
Victor Lavrenko, W. Bruce Croft · ACM SIGIR Forum · 2017 · 1.4K citations
Relevance based language models
Victor Lavrenko, W. Bruce Croft · 2001 · 1K citations