Query Expansion via Intent Predicting
Abstract
To make the code search (CS) become more effective, a novel query expansion with intents (QEI) is proposed, in which the intent refers to the common subsequent modifications of the search results. The intent is extracted from the modification history. Within the intent scope, the CS is speeded up based on the semantic and structural matches. The precision of the search results is also increased by expanding the query with the intent. Compared with CodeHow and Google CS, QEI outperforms them by 28.5% with a precision score of 0.846. (i.e. 84.6% of the first results are accepted directly by users).