com.elasticpath.domain.search
Interface SearchCriteria

All Superinterfaces:
EpDomain, java.io.Serializable, Transient
All Known Subinterfaces:
CategorySearchCriteria, CustomerSearchCriteria, OrderSearchCriteria, ProductSearchCriteria
All Known Implementing Classes:
AbstractSearchCriteriaImpl, CategorySearchCriteriaImpl, CustomerSearchCriteriaImpl, OrderSearchCriteriaImpl, ProductSearchCriteriaImpl

public interface SearchCriteria
extends java.io.Serializable, Transient

Represents an abstract search criteria. A concrete search criteria needs to extend this interface.


Method Summary
 java.util.Locale getLocale()
          Returns the Locale.
 boolean isFuzzySearchDisabled()
          Returns whether or not a fuzzy search should be performed for this query.
 void setFuzzySearchDisabled(boolean fuzzySearchDisabled)
          Sets whether or not a fuzzy search should be performed for this query.
 void setLocale(java.util.Locale locale)
          Sets the Locale.
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

getLocale

java.util.Locale getLocale()
Returns the Locale.

Returns:
the Locale

isFuzzySearchDisabled

boolean isFuzzySearchDisabled()
Returns whether or not a fuzzy search should be performed for this query.

Returns:
true if fuzzy search is disabled, false otherwise

setFuzzySearchDisabled

void setFuzzySearchDisabled(boolean fuzzySearchDisabled)
Sets whether or not a fuzzy search should be performed for this query.

Parameters:
fuzzySearchDisabled - whether or not fuzzy search is disabled

setLocale

void setLocale(java.util.Locale locale)
Sets the Locale. Some contents are indexed in multiple locales. The Locale given here decides what contents get searched.

e.g. If you give en, only English contents get searched. You can give null to search on system default locale.

Parameters:
locale - the Locale