@StableMinor(version="7.1", sinceVersion="4.0") public abstract class Searcher extends Processor
definitionNode, searchEngineId
Constructor and Description |
---|
Searcher(Node definitionNode)
Creates a Searcher, configured by the given definition
node . |
Modifier and Type | Method and Description |
---|---|
abstract SearchResults |
search(SearchQuery searchQuery)
Runs the given
search query and returns the search results . |
abstract void |
validate(SearchQuery searchQuery)
Checks is the given
search query is sintatically correct. |
getConfigNode, getConfigNodes
public Searcher(Node definitionNode) throws PortalException
node
.definitionNode
- definition node
.PortalException
public abstract SearchResults search(SearchQuery searchQuery) throws PortalException
search query
and returns the search results
.searchQuery
- the query to run.PortalException
public abstract void validate(SearchQuery searchQuery) throws SearchException, PortalException
search query
is sintatically correct.searchQuery
- the search query
to be validatedSearchException
- if there is a sintax error in query.PortalException
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.