code: protected I_CmsSearchDocument appendType(
          I_CmsSearchDocument document,
          CmsObject cms,
          CmsResource resource,
          I_CmsExtractionResult extractionResult,
          List<CmsProperty> properties,
          List<CmsProperty> propertiesSearched)
      throws CmsLoaderException {
  
          // add the resource type to the document
          I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(resource.getTypeId());
          String typeName = "VFS";
          if (type != null) {
              typeName = type.getTypeName();
          }
          document.addTypeField(typeName);
  
          // add the file name suffix to the document
          String resName = CmsResource.getName(resource.getRootPath());
          int index = resName.lastIndexOf('.');
          if ((index != -1) && (resName.length() > index)) {
              document.addSuffixField(resName.substring(index + 1));
          }
          return document;
      }
docs: Extends the given document by a field that contains the resource type name.<p>
  
  @param document the document to extend
  @param cms the OpenCms context used for building the search index
  @param resource the resource that is indexed
  @param extractionResult the plain text extraction result from the resource
  @param properties the list of all properties directly attached to the resource (not searched)
  @param propertiesSearched the list of all searched properties of the resource
  
  @return the document extended by a field that contains the resource type name
  
  @throws CmsLoaderException in case of errors identifying the resource type name