Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 51 for mimetypes (0.27 seconds)

  1. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

                // When same key is added multiple times, patterns are combined with |
                generator.addCondition("mimetype", "image/jpeg");
                generator.addCondition("mimetype", "image/png");
                generator.addCondition("mimetype", "image/svg" + "\\" + "+xml");
    
                // Test: All configured MIME types should match
                Map<String, Object> jpegDocMap = new HashMap<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

         *
         * @param mimetype the MIME type to map (e.g., "application/pdf")
         * @param filetype the file type classification (e.g., "pdf")
         */
        public void add(final String mimetype, final String filetype) {
            mimetypeMap.put(mimetype, filetype);
        }
    
        /**
         * Retrieves the file type for a given MIME type.
         *
         * @param mimetype the MIME type to look up
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/helper/ViewHelper.java

            final String mimeType = responseData.getMimeType();
            if (logger.isDebugEnabled()) {
                logger.debug("mimeType: {}", mimeType);
            }
            if (mimeType == null) {
                response.contentTypeOctetStream();
                return;
            }
            if (mimeType.startsWith("text/")) {
                final String charset = responseData.getCharSet();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 52.6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

            stream(config.getPermissions()).of(stream -> stream.forEach(p -> roleTypeList.add(p)));
            defaultDataMap.put(fessConfig.getIndexFieldRole(), roleTypeList);
            // mimetype
            defaultDataMap.put(fessConfig.getIndexFieldMimetype(), mimeType);
            // title
            // content
            // cache
            // digest
            // host
            // site
            // url
            // anchor
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  5. src/main/webapp/js/chat.js

        /**
         * Get file type icon based on URL or mimetype
         */
        function getFileTypeIcon(url, mimetype) {
            if (mimetype) {
                if (mimetype.indexOf('pdf') !== -1) return 'fa-file-pdf-o';
                if (mimetype.indexOf('word') !== -1 || mimetype.indexOf('document') !== -1) return 'fa-file-word-o';
                if (mimetype.indexOf('excel') !== -1 || mimetype.indexOf('spreadsheet') !== -1) return 'fa-file-excel-o';
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 01:36:02 GMT 2026
    - 30.6K bytes
    - Click Count (0)
  6. src/main/resources/crawler/rule.xml

    		</property>
    		<property name="allRequired">true</property>
    		<postConstruct name="addRule">
    			<arg>"url"</arg>
    			<arg>"http[s]?:.*"</arg>
    		</postConstruct>
    		<postConstruct name="addRule">
    			<arg>"mimeType"</arg>
    			<!-- Supported MIME type -->
    			<arg>"text/html"</arg>
    		</postConstruct>
    	</component>
    
    	<component name="webFileRule" class="org.codelibs.fess.crawler.rule.impl.RegexRule" >
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 29 08:21:02 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  7. src/main/assemblies/files/generate-thumbnail

    #!/bin/bash
    
    cmd_type=$1
    url=$2
    output_file=$3
    mimetype=${4:-}
    image_size=100x100
    target_file=$(echo "$url" | sed -e "s#^file:/*#/#g")
    
    check_command() {
      cmd=$1
      cmd_path=$(command -v "${cmd}")
      if [[ ! -e "${cmd_path}" ]] ; then
        echo "${cmd} does not exist."
        exit 1
      fi
    }
    
    # Get ImageMagick command (magick for v7, convert for v6)
    get_imagemagick_cmd() {
      if command -v magick >/dev/null 2>&1; then
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

         */
        protected boolean isImageMimeType(final ResponseData responseData) {
            final String mimeType = responseData.getMimeType();
            if (mimeType == null) {
                return true;
            }
    
            return switch (mimeType) {
            case "image/png", "image/gif", "image/jpeg", "image/bmp" -> true;
            default -> false;
            };
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  9. MIGRATION.md

            # Transform to Fess format
            fess_doc = {
                "url": doc.get("url", ""),
                "title": doc.get("title", ""),
                "content": doc.get("content", ""),
                "mimetype": doc.get("mimetype", "text/html"),
                "filetype": doc.get("filetype", "html"),
                "created": doc.get("@timestamp", ""),
                "timestamp": doc.get("@timestamp", ""),
                # Add custom fields as needed
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 06 12:40:11 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  10. src/test/resources/thumbnail/test_generate_thumbnail.sh

        echo -e "${GREEN}PASSED${NC}"
        ((TESTS_PASSED++))
    else
        echo -e "${RED}FAILED${NC}"
        ((TESTS_FAILED++))
    fi
    
    echo ""
    echo "--- Mimetype argument tests ---"
    
    echo -n "Testing: mimetype is 4th argument... "
    if grep -q 'mimetype=\${4:-}' "${GENERATE_THUMBNAIL}"; then
        echo -e "${GREEN}PASSED${NC}"
        ((TESTS_PASSED++))
    else
        echo -e "${RED}FAILED${NC}"
        ((TESTS_FAILED++))
    fi
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top