com.elasticpath.persistence.impl
Class IndexSearcherImpl

java.lang.Object
  extended by com.elasticpath.persistence.impl.IndexSearcherImpl
All Implemented Interfaces:
IndexSearcher

public class IndexSearcherImpl
extends java.lang.Object
implements IndexSearcher

Data access for the Lucene index.


Constructor Summary
IndexSearcherImpl()
           
 
Method Summary
 java.util.List search(java.lang.String indexDir, QueryComposer queryComposer, SearchCriteria searchCriteria)
          Searches the index with the given query.
 void setElasticPath(ElasticPath elasticPath)
          Set the ElasticPath instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexSearcherImpl

public IndexSearcherImpl()
Method Detail

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 directory
queryComposer - the query composer
searchCriteria - the search criteria
Returns:
list of object uids

setElasticPath

public void setElasticPath(ElasticPath elasticPath)
Set the ElasticPath instance.

Parameters:
elasticPath - the instance of ElasticPath