lumis.search
Class Searcher
java.lang.Object
lumis.search.Processor
lumis.search.Searcher
- Direct Known Subclasses:
- LuceneSearcher
@StableMinor(version="6.2",
sinceVersion="4.0")
public abstract class Searcher
- extends Processor
Searchs for data in a search engine.
- Since:
- 4.0.4
Constructor Summary |
Searcher(Node definitionNode)
Creates a Searcher, configured by the given definition node . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Searcher
public Searcher(Node definitionNode)
throws PortalException
- Creates a Searcher, configured by the given definition
node
.
- Parameters:
definitionNode
- definition node
.
- Throws:
PortalException
- Since:
- 4.0.4
search
public abstract SearchResults search(SearchQuery searchQuery)
throws PortalException
- Runs the given
search query
and returns the search results
.
- Parameters:
searchQuery
- the query to run.
- Returns:
- the search results.
- Throws:
PortalException
- Since:
- 4.0.4
validate
public abstract void validate(SearchQuery searchQuery)
throws SearchException,
PortalException
- Checks is the given
search query
is sintatically correct.
- Parameters:
searchQuery
- the search query
to be validated
- Throws:
SearchException
- if there is a sintax error in query.
PortalException
- Since:
- 4.0.4
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.