SearchAdapterInterface
interface SearchAdapterInterface (View source)
Interface SearchAdapterInterface
Methods
Parameter $conjunction should be CONJUNCTION_AND or CONJUNCTION_OR, and your Adapter should return the appropriate string representation of that conjunction.
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.
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.
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.
string
getAppendToCriteriaComponent()
No description
string
getOpenComparisonContainer()
Define how each of your comparisons should be contained.
EG: For Solr, we wrap each comparison in ().
string
getCloseComparisonContainer()
No description
string
generateQueryString(SearchCriterion $criterion)
No description