Novel and applied algorithms in a search engine for Java code snippets

0Citations
Citations of this article
4Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Programmers often look for a snippet, that is, a small piece of example code, to remind themselves of how to solve a problem or to quickly learn about a new resource. However, existing tools such as general-purpose search engines and code-specific search engines do not deal well with searches for snippets. In this chapter, we present a prototype search engine designed to work with code snippets. Our approach is based on using the non-code text on a web page as metadata for the snippet to improve indexing and retrieval. We discuss some implementation issues that we encountered, which lead to lessons learned for others who follow. These issues include: extracting snippets from web pages, selecting and indexing metadata, matching query terms with multiple metadata indexes, and identifying a text summary to be used in the presentations of results.

Cite

CITATION STYLE

APA

Tantikul, P., Thompson, C. A., Gallardo-Valencia, R. E., & Sim, S. E. (2013). Novel and applied algorithms in a search engine for Java code snippets. In Finding Source Code on the Web for Remix and Reuse (Vol. 9781461465966, pp. 271–287). Springer New York. https://doi.org/10.1007/978-1-4614-6596-6_14

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free