private function getFieldType(Field $field)
    {
        if ($field->isStored() && $field->isIndexed()) {
            return 'text';
        }

        if (false === $field->isStored() && $field->isIndexed()) {
            return 'unStored';
        }

        if ($field->isStored() && false === $field->isIndexed()) {
            return 'unIndexed';
        }

        throw new \InvalidArgumentException(
            sprintf(
                'Field "%s" cannot be both not indexed and not stored',
                $field->getName()
            )
        );
    }
private function getFieldType(Field $field)
    {
        if ($field->isStored() && $field->isIndexed()) {
            return 'text';
        }

        if (false === $field->isStored() && $field->isIndexed()) {
            return 'unStored';
        }

        if ($field->isStored() && false === $field->isIndexed()) {
            return 'unIndexed';
        }

        throw new \InvalidArgumentException(
            sprintf(
                'Field "%s" cannot be both not indexed and not stored',
                $field->getName()
            )
        );
    }
private function getFieldType ( Field $ field ) { if ( $ field -> isStored ( ) && $ field -> isIndexed ( ) ) { return 'text' ; } if ( false === $ field -> isStored ( ) && $ field -> isIndexed ( ) ) { return 'unStored' ; } if ( $ field -> isStored ( ) && false === $ field -> isIndexed ( ) ) { return 'unIndexed' ; } throw new \ InvalidArgumentException ( sprintf ( 'Field "%s" cannot be both not indexed and not stored' , $ field -> getName ( ) ) ) ; }
Return the zend lucene field type to use for the given field.

@param Field $field

@return string
Return the zend lucene field type to use for the given field .