|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.service.impl.AbstractEpServiceImpl com.elasticpath.service.index.impl.IndexSearchServiceImpl
public class IndexSearchServiceImpl
This is a mediator(see GoF mediator pattern), which distribute search request to appropriate concrete search service.
Constructor Summary | |
---|---|
IndexSearchServiceImpl()
|
Method Summary | |
---|---|
Analyzer |
getAnalyzer()
Returns the analyzer. |
QueryComposer |
getCategoryQueryComposer()
Returns the category query composer. |
QueryComposer |
getCustomerQueryComposer()
Returns the customer query composer. |
IndexSearcher |
getIndexSearcher()
Returns the index searcher. |
QueryComposer |
getOrderQueryComposer()
Returns the order query composer. |
QueryComposer |
getProductQueryComposer()
Returns the product query composer. |
SpellIndexSearcher |
getSpellIndexSearcher()
Gets the spell index searcher. |
java.util.List |
search(SearchCriteria searchCriteria)
Searches the index with the given search criteria. |
void |
setAnalyzer(Analyzer analyzer)
Sets the analyzer. |
void |
setCategoryQueryComposer(QueryComposer categoryQueryComposer)
Sets the category query composer. |
void |
setCustomerQueryComposer(QueryComposer customerQueryComposer)
Sets the customer query composer. |
void |
setIndexSearcher(IndexSearcher indexSearcher)
Sets the index searcher. |
void |
setOrderQueryComposer(QueryComposer orderQueryComposer)
Sets the order query composer. |
void |
setProductQueryComposer(QueryComposer productQueryComposer)
Sets the product query composer. |
void |
setSpellIndexSearcher(SpellIndexSearcher spellIndexSearcher)
Sets the spell index searcher. |
java.lang.String[] |
suggest(ProductSearchCriteria searchCriteria)
Suggests alternate query strings based on the given search criteria. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public IndexSearchServiceImpl()
Method Detail |
---|
public Analyzer getAnalyzer()
public final QueryComposer getCategoryQueryComposer()
public final QueryComposer getCustomerQueryComposer()
public IndexSearcher getIndexSearcher()
public final QueryComposer getOrderQueryComposer()
public final QueryComposer getProductQueryComposer()
public SpellIndexSearcher getSpellIndexSearcher()
public java.util.List search(SearchCriteria searchCriteria)
search
in interface IndexSearchService
searchCriteria
- the search criteria
public void setAnalyzer(Analyzer analyzer)
analyzer
- the analyzerpublic final void setCategoryQueryComposer(QueryComposer categoryQueryComposer)
categoryQueryComposer
- the category query composerpublic final void setCustomerQueryComposer(QueryComposer customerQueryComposer)
customerQueryComposer
- the customer query composerpublic void setIndexSearcher(IndexSearcher indexSearcher)
indexSearcher
- the index searcherpublic final void setOrderQueryComposer(QueryComposer orderQueryComposer)
orderQueryComposer
- the order query composerpublic final void setProductQueryComposer(QueryComposer productQueryComposer)
productQueryComposer
- the product query composerpublic void setSpellIndexSearcher(SpellIndexSearcher spellIndexSearcher)
spellIndexSearcher
- the spell index searcherpublic java.lang.String[] suggest(ProductSearchCriteria searchCriteria)
suggest
in interface IndexSearchService
searchCriteria
- the search criteria to base the suggestions on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |