function where($field, $operator, $value)
    {
        switch ($operator) {
            //EQUALITY
            case '=':
                $this->requestDecorator->addParameter($field, '=', $value);
                break;
            //INEQUALITY
            case '!=':
            case '[ne]':
            case 'ne':
                $this->requestDecorator->addParameter($field, '[ne]', $value);
                break;
            //INCLUSION
            case '[in]':
            case 'in':
                $this->requestDecorator->addParameter($field, '[in]', $value);
                break;
            //EXCLUSION
            case '[nin]':
            case 'nin':
                $this->requestDecorator->addParameter($field, '[nin]', $value);
                break;
            //LESS THAN
            case '<':
            case '[lt]':
            case 'lt':
                $this->requestDecorator->addParameter($field, '[lt]', $value);
                break;
            //GREATER THAN
            case '>':
            case '[gt]':
            case 'gt':
                $this->requestDecorator->addParameter($field, '[gt]', $value);
                break;
            //LESS THAN OR EQUAL TO
            case '<=':
            case '[lte]':
            case 'lte':
                $this->requestDecorator->addParameter($field, '[lte]', $value);
                break;
            //GREATER THAN OR EQUAL TO
            case '>=':
            case '[gte]':
            case 'gte':
                $this->requestDecorator->addParameter($field, '[gte]', $value);
                break;
            //MATCH
            case 'match':
            case '[match]':
                $this->requestDecorator->addParameter($field, '[match]', $value);
                break;
            //LOCATION - NEAR
            case 'near':
            case '[near]':
                $this->requestDecorator->addParameter($field, '[near]', $value);
                break;
            //LOCATION - WITHIN
            case 'within':
            case '[within]':
                $this->requestDecorator->addParameter($field, '[within]', $value);
                break;
            default:
                $this->requestDecorator->addParameter($field, '[' . $operator . ']', $value);
        }
        return $this;
    }
function where($field, $operator, $value)
    {
        switch ($operator) {
            //EQUALITY
            case '=':
                $this->requestDecorator->addParameter($field, '=', $value);
                break;
            //INEQUALITY
            case '!=':
            case '[ne]':
            case 'ne':
                $this->requestDecorator->addParameter($field, '[ne]', $value);
                break;
            //INCLUSION
            case '[in]':
            case 'in':
                $this->requestDecorator->addParameter($field, '[in]', $value);
                break;
            //EXCLUSION
            case '[nin]':
            case 'nin':
                $this->requestDecorator->addParameter($field, '[nin]', $value);
                break;
            //LESS THAN
            case '<':
            case '[lt]':
            case 'lt':
                $this->requestDecorator->addParameter($field, '[lt]', $value);
                break;
            //GREATER THAN
            case '>':
            case '[gt]':
            case 'gt':
                $this->requestDecorator->addParameter($field, '[gt]', $value);
                break;
            //LESS THAN OR EQUAL TO
            case '<=':
            case '[lte]':
            case 'lte':
                $this->requestDecorator->addParameter($field, '[lte]', $value);
                break;
            //GREATER THAN OR EQUAL TO
            case '>=':
            case '[gte]':
            case 'gte':
                $this->requestDecorator->addParameter($field, '[gte]', $value);
                break;
            //MATCH
            case 'match':
            case '[match]':
                $this->requestDecorator->addParameter($field, '[match]', $value);
                break;
            //LOCATION - NEAR
            case 'near':
            case '[near]':
                $this->requestDecorator->addParameter($field, '[near]', $value);
                break;
            //LOCATION - WITHIN
            case 'within':
            case '[within]':
                $this->requestDecorator->addParameter($field, '[within]', $value);
                break;
            default:
                $this->requestDecorator->addParameter($field, '[' . $operator . ']', $value);
        }
        return $this;
    }
function where ( $ field , $ operator , $ value ) { switch ( $ operator ) { //EQUALITY case '=' : $ this -> requestDecorator -> addParameter ( $ field , '=' , $ value ) ; break ; //INEQUALITY case '!=' : case '[ne]' : case 'ne' : $ this -> requestDecorator -> addParameter ( $ field , '[ne]' , $ value ) ; break ; //INCLUSION case '[in]' : case 'in' : $ this -> requestDecorator -> addParameter ( $ field , '[in]' , $ value ) ; break ; //EXCLUSION case '[nin]' : case 'nin' : $ this -> requestDecorator -> addParameter ( $ field , '[nin]' , $ value ) ; break ; //LESS THAN case '<' : case '[lt]' : case 'lt' : $ this -> requestDecorator -> addParameter ( $ field , '[lt]' , $ value ) ; break ; //GREATER THAN case '>' : case '[gt]' : case 'gt' : $ this -> requestDecorator -> addParameter ( $ field , '[gt]' , $ value ) ; break ; //LESS THAN OR EQUAL TO case '<=' : case '[lte]' : case 'lte' : $ this -> requestDecorator -> addParameter ( $ field , '[lte]' , $ value ) ; break ; //GREATER THAN OR EQUAL TO case '>=' : case '[gte]' : case 'gte' : $ this -> requestDecorator -> addParameter ( $ field , '[gte]' , $ value ) ; break ; //MATCH case 'match' : case '[match]' : $ this -> requestDecorator -> addParameter ( $ field , '[match]' , $ value ) ; break ; //LOCATION - NEAR case 'near' : case '[near]' : $ this -> requestDecorator -> addParameter ( $ field , '[near]' , $ value ) ; break ; //LOCATION - WITHIN case 'within' : case '[within]' : $ this -> requestDecorator -> addParameter ( $ field , '[within]' , $ value ) ; break ; default : $ this -> requestDecorator -> addParameter ( $ field , '[' . $ operator . ']' , $ value ) ; } return $ this ; }
Limit results by operator search.
@param $field
@param $operator
@param $value
@return $this
Limit results by operator search .