public class SearchEngine
extends java.lang.Object
| Constructor and Description |
|---|
SearchEngine()
Create a new instance of SearchEngine
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<SearchResult> |
analyse(SearchInfo searchInfo)
Perform a search based on the configuration and return the resulting analysis.
|
java.util.ArrayList<SearchResult> |
search(SearchInfo searchInfo)
Perform a search based on the configuration and return the resulting parsed content.
|
public java.util.ArrayList<SearchResult> search(SearchInfo searchInfo) throws java.lang.Exception
searchInfo - the search configuration info.SearchResult object that contains the web page url, page html content and
a list of parsed hyperlinks.java.lang.Exception - any error.public java.util.ArrayList<SearchResult> analyse(SearchInfo searchInfo) throws java.lang.Exception
searchInfo - the search configuration info.SearchResult objects.java.lang.Exception - any error.