|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.core.ProcessingComponentBase
org.carrot2.source.SearchEngineBase
org.carrot2.source.SimpleSearchEngine
org.carrot2.source.pubmed.PubMedDocumentSource
public class PubMedDocumentSource
Performs searches on the PubMed database using its on-line e-utilities: http://eutils.ncbi.nlm.nih.gov/entrez/query/static/eutils_help.html
| Field Summary | |
|---|---|
static String |
E_FETCH_URL
PubMed fetch service URL |
static String |
E_SEARCH_URL
PubMed search service URL |
int |
maxResults
Maximum results to fetch. |
static int |
PUBMED_TIMEOUT
HTTP timeout for pubmed services. |
| Fields inherited from class org.carrot2.source.SearchEngineBase |
|---|
compressed, documents, query, results, resultsTotal, start, statistics |
| Constructor Summary | |
|---|---|
PubMedDocumentSource()
|
|
| Method Summary | |
|---|---|
protected void |
afterFetch(SearchEngineResponse response)
Called after a single search engine response has been fetched. |
protected SearchEngineResponse |
fetchSearchResponse()
Requests and returns results from the underlying search engine. |
| Methods inherited from class org.carrot2.source.SimpleSearchEngine |
|---|
process |
| Methods inherited from class org.carrot2.source.SearchEngineBase |
|---|
clean, urlEncode |
| Methods inherited from class org.carrot2.core.ProcessingComponentBase |
|---|
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.carrot2.core.IProcessingComponent |
|---|
afterProcessing, beforeProcessing, dispose, init |
| Field Detail |
|---|
public static final String E_SEARCH_URL
public static final String E_FETCH_URL
public static final int PUBMED_TIMEOUT
public int maxResults
| Constructor Detail |
|---|
public PubMedDocumentSource()
| Method Detail |
|---|
protected SearchEngineResponse fetchSearchResponse()
throws Exception
SimpleSearchEngine
fetchSearchResponse in class SimpleSearchEngineException - in case of problems with the underlying search engineprotected void afterFetch(SearchEngineResponse response)
SearchEngineBase
afterFetch in class SearchEngineBase
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||