interface SearchAdapterInterface (View source)

Interface SearchAdapterInterface

Methods

public
string
getConjunctionFor(string $conjunction)

Parameter $conjunction should be CONJUNCTION_AND or CONJUNCTION_OR, and your Adapter should return the appropriate string representation of that conjunction.

public
string
getPrependToCriteriaComponent()

Due to the fact that we have filter criteria coming from legacy methods (as well as our Criteria), you may find that you need to prepend (or append) something to your group of Criteria statements.

public
string
getAppendToCriteriaComponent()

No description

public
string
getOpenComparisonContainer()

Define how each of your comparisons should be contained.

public
string
getCloseComparisonContainer()

No description

public
string
generateQueryString(SearchCriterion $criterion)

No description

Details

string getConjunctionFor(string $conjunction)

Parameter $conjunction should be CONJUNCTION_AND or CONJUNCTION_OR, and your Adapter should return the appropriate string representation of that conjunction.

Parameters

string $conjunction

Return Value

string

string getPrependToCriteriaComponent()

Due to the fact that we have filter criteria coming from legacy methods (as well as our Criteria), you may find that you need to prepend (or append) something to your group of Criteria statements.

EG: For Solr, we need to add a "+" between the default filters, and our Criteria.

Return Value

string

string getAppendToCriteriaComponent()

No description

Return Value

string

string getOpenComparisonContainer()

Define how each of your comparisons should be contained.

EG: For Solr, we wrap each comparison in ().

Return Value

string

string getCloseComparisonContainer()

No description

Return Value

string

string generateQueryString(SearchCriterion $criterion)

No description

Parameters

SearchCriterion $criterion

Return Value

string