public static function determineFilterType($value)
    {
        // Check for two possible combos
        //  1. The old pattern, which is ' + '
        //  2. A new pattern, which accounts for '+' === ' ' in urls
        $pattern = '/(\s+\+\s+)|(\+\+\+)/';
        return preg_match($pattern, $value) === 1 ? Datasource::FILTER_AND : Datasource::FILTER_OR;
    }
public static function determineFilterType($value)
    {
        // Check for two possible combos
        //  1. The old pattern, which is ' + '
        //  2. A new pattern, which accounts for '+' === ' ' in urls
        $pattern = '/(\s+\+\s+)|(\+\+\+)/';
        return preg_match($pattern, $value) === 1 ? Datasource::FILTER_AND : Datasource::FILTER_OR;
    }
public static function determineFilterType ( $ value ) { // Check for two possible combos //  1. The old pattern, which is ' + ' //  2. A new pattern, which accounts for '+' === ' ' in urls $ pattern = '/(\s+\+\s+)|(\+\+\+)/' ; return preg_match ( $ pattern , $ value ) === 1 ? Datasource :: FILTER_AND : Datasource :: FILTER_OR ; }
By default, all Symphony filters are considering to be OR and " + " filters
are used for AND. They are all used and Entries must match each filter to be included.
It is possible to use OR filtering in a field by using an ", " to separate the values.

If the filter is "test1, test2", this will match any entries where this field
is test1 OR test2. If the filter is "test1 + test2", this will match entries
where this field is test1 AND test2. The spaces around the + are required.

Not all fields supports this feature.

This function is run on each filter (ie. each field) in a datasource.

@param string $value
The filter string for a field.
@return integer
Datasource::FILTER_OR or Datasource::FILTER_AND
By default all Symphony filters are considering to be OR and + filters are used for AND . They are all used and Entries must match each filter to be included . It is possible to use OR filtering in a field by using an to separate the values .