SilverStripe\FullTextSearch\Search\Adapters\SearchAdapterInterface
Interface SearchAdapterInterface
Synopsis
interface SearchAdapterInterface
{
- // methods
- public string getConjunctionFor()
- public string getPrependToCriteriaComponent()
- public string getAppendToCriteriaComponent()
- public string getOpenComparisonContainer()
- public string getCloseComparisonContainer()
- public string generateQueryString()
Methods
public
- generateQueryString()
- getAppendToCriteriaComponent()
- getCloseComparisonContainer()
- getConjunctionFor() — Parameter $conjunction should be CONJUNCTION_AND or CONJUNCTION_OR, and your Adapter should return the appropriate string representation of that conjunction.
- getOpenComparisonContainer() — Define how each of your comparisons should be contained.
- 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.