Class orion.searchResults.SearchResultsGenerator
A search results generator for display search results to an end user
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.ui/web/orion/searchResults.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new search results generator.
|
Method Attributes | Method Name and Description |
---|---|
_search(resultsNode, query, excludeFile, generateHeading, onResultReady, hideSummaries, useSimpleFormat)
Runs a search and displays the results under the given DOM node.
|
|
loadResults(query)
Performs the given query and generates the user interface
representation of the search results.
|
Method Detail
_search(resultsNode, query, excludeFile, generateHeading, onResultReady, hideSummaries, useSimpleFormat)
Runs a search and displays the results under the given DOM node.
- Parameters:
- {DOMNode} resultsNode
- Node under which results will be added.
- {String} query
- URI of the query to run.
- {String} excludeFile Optional
- URI of a file to exclude from the result listing.
- {Boolean} generateHeading Optional
- generate a heading for the results
- {Function(DOMNode)} onResultReady Optional
- If any results were found, this is called on the resultsNode.
- {Boolean} hideSummaries Optional
- Don't show the summary of what matched beside each result.
- {Boolean} useSimpleFormat Optional
- Use simple format that only shows the file name to show the result, other wise use a complex format with search details.
loadResults(query)
Performs the given query and generates the user interface
representation of the search results.
- Parameters:
- {String} query
- The search query