com.elasticpath.persistence.impl
Class IndexSearcherImpl
java.lang.Object
com.elasticpath.persistence.impl.IndexSearcherImpl
- All Implemented Interfaces:
- IndexSearcher
public class IndexSearcherImpl
- extends java.lang.Object
- implements IndexSearcher
Data access for the Lucene index.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexSearcherImpl
public IndexSearcherImpl()
search
public java.util.List search(java.lang.String indexDir,
QueryComposer queryComposer,
SearchCriteria searchCriteria)
- Searches the index with the given query.
- Specified by:
search
in interface IndexSearcher
- Parameters:
indexDir
- the index directoryqueryComposer
- the query composersearchCriteria
- the search criteria
- Returns:
- list of object uids
setElasticPath
public void setElasticPath(ElasticPath elasticPath)
- Set the
ElasticPath
instance.
- Parameters:
elasticPath
- the instance of ElasticPath