lumis.search.lucene
Class LuceneSearcher

Package class diagram package LuceneSearcher
java.lang.Object
  extended by lumis.search.Processor
      extended by lumis.search.Searcher
          extended by lumis.search.lucene.LuceneSearcher

public class LuceneSearcher
extends Searcher

Lucene implementation for Searcher.

Since:
4.0.0

Field Summary
 
Fields inherited from class lumis.search.Processor
definitionNode, searchEngineId
 
Constructor Summary
LuceneSearcher(Node searcherNode)
           
 
Method Summary
protected  List<String> getIndexBasePaths(SearchAttributes searchAttributes)
           
protected  List<String> getIndexBasePaths(SearchQuery searchQuery)
           
protected  org.apache.lucene.search.Query getQuery(SearchQuery searchQuery)
           
 SearchResults search(SearchQuery searchQuery)
          Runs the given search query and returns the search results.
 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

LuceneSearcher

public LuceneSearcher(Node searcherNode)
               throws PortalException
Throws:
PortalException
Method Detail

getQuery

protected org.apache.lucene.search.Query getQuery(SearchQuery searchQuery)
                                           throws SearchException,
                                                  PortalException
Throws:
SearchException
PortalException

search

public SearchResults search(SearchQuery searchQuery)
                     throws PortalException
Description copied from class: Searcher
Runs the given search query and returns the search results.

Specified by:
search in class Searcher
Parameters:
searchQuery - the query to run.
Returns:
the search results.
Throws:
PortalException

validate

public void validate(SearchQuery searchQuery)
              throws SearchException,
                     PortalException
Description copied from class: Searcher
Checks is the given search query is sintatically correct.

Specified by:
validate in class Searcher
Parameters:
searchQuery - the search query to be validated
Throws:
SearchException - if there is a sintax error in query.
PortalException

getIndexBasePaths

protected List<String> getIndexBasePaths(SearchQuery searchQuery)
                                  throws PortalException
Throws:
PortalException

getIndexBasePaths

protected List<String> getIndexBasePaths(SearchAttributes searchAttributes)
                                  throws PortalException
Throws:
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.