lumis.search
Class Searcher

Package class diagram package Searcher
java.lang.Object
  extended by lumis.search.Processor
      extended by lumis.search.Searcher
Direct Known Subclasses:
LuceneSearcher

@StableMinor(version="5.5",
             sinceVersion="4.0")
public abstract class Searcher
extends Processor

Searchs for data in a search engine.

Since:
4.0.4

Field Summary
 
Fields inherited from class lumis.search.Processor
definitionNode, searchEngineId
 
Constructor Summary
Searcher(Node definitionNode)
          Creates a Searcher, configured by the given definition node.
 
Method Summary
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.
 
Methods inherited from class lumis.search.Processor
getConfigNode, getConfigNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.