public class Search
extends java.lang.Object
Constructor and Description |
---|
Search(java.lang.String domain)
Initializes the object with the domain to search through.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
search(java.lang.String keyword,
int number,
int threshold)
Searches through the pages by a keyword and returns the top matches
|
public Search(java.lang.String domain)
domain
- the domainpublic java.util.List<java.lang.String> search(java.lang.String keyword, int number, int threshold)
keyword
- the keywordnumber
- the number of results to listthreshold
- the threshold required to be selected