code: func (api *API) Views(ctx context.Context, indexName string, fieldName string) ([]*view, error) {
  	span, _ := tracing.StartSpanFromContext(ctx, "API.Views")
  	defer span.Finish()
  
  	if err := api.validate(apiViews); err != nil {
  		return nil, errors.Wrap(err, "validating api method")
  	}
  
  	// Retrieve views.
  	f := api.holder.Field(indexName, fieldName)
  	if f == nil {
  		return nil, ErrFieldNotFound
  	}
  
  	// Fetch views.
  	views := f.views()
  	return views, nil
  }
docs: // Views returns the views in the given field.