public interface ISearchEngine
Search engines that have API access to the search server can provide a list of individual search results. Search engines for which only the URL is known are expected to return one search result containing a URL that is sufficient to open a web browser and see the search results there.
Search engine must be cancelable.
This interface is intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
void |
run(String query,
ISearchScope scope,
ISearchEngineResultCollector collector,
IProgressMonitor monitor) |
void run(String query, ISearchScope scope, ISearchEngineResultCollector collector, IProgressMonitor monitor) throws CoreException
query
- the search expressionscope
- the engine-specific scope object that is used to narrow the
search or null
if the default scope is assumed.collector
- the search result collector handles results as they arrivemonitor
- progress monitor to track the search progressCoreException
- when there are problems in the engine
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.