public class LuceneSearcher extends Searcher
Searcher
.definitionNode, searchEngineId
Constructor and Description |
---|
LuceneSearcher(Node searcherNode) |
Modifier and Type | Method and Description |
---|---|
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. |
getConfigNode, getConfigNodes
public LuceneSearcher(Node searcherNode) throws PortalException
PortalException
protected org.apache.lucene.search.Query getQuery(SearchQuery searchQuery) throws SearchException, PortalException
SearchException
PortalException
public SearchResults search(SearchQuery searchQuery) throws PortalException
Searcher
search query
and returns the search results
.search
in class Searcher
searchQuery
- the query to run.PortalException
public void validate(SearchQuery searchQuery) throws SearchException, PortalException
Searcher
search query
is sintatically correct.validate
in class Searcher
searchQuery
- the search query
to be validatedSearchException
- if there is a sintax error in query.PortalException
protected List<String> getIndexBasePaths(SearchQuery searchQuery) throws PortalException
PortalException
protected List<String> getIndexBasePaths(SearchAttributes searchAttributes) throws PortalException
PortalException
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.