Novel and Applied Algorithms in a Search Engine for Java Code Snippets

184

Views

0

Downloads

Tantikul, Phitchayaphong, Thompson, C. Albert, Gallardo-Valencia, Rosalva E. and Sim, Susan Elliott (2013) Novel and Applied Algorithms in a Search Engine for Java Code Snippets In: Finding Source Code on the Web for Remix and Reuse Springer New York, 271-287.

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.

Item Type:

Book Section

Identification Number (DOI):

Deposited by:

ระบบ อัตโนมัติ

Date Deposited:

2021-09-06 03:38:23

Last Modified:

2021-09-06 03:38:23

Impact and Interest:

Statistics