Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for rhash (0.03 seconds)

  1. src/test/java/org/codelibs/fess/helper/DocumentHelperTest.java

            String hash = "01010101010101010101010101010101";
            String value = "$H4sIAAAAAAAA_zMwNMALAXC7sg0gAAAA";
            assertEquals(value, documentHelper.encodeSimilarDocHash(hash));
            hash = "00101010010010100100101010001010";
            value = "$H4sIAAAAAAAA_zMwMARDCELQQApMAgAi5-3LIAAAAA";
            assertEquals(value, documentHelper.encodeSimilarDocHash(hash));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

        }
    
        /**
         * Encodes a similar document hash using GZIP compression and Base64 encoding.
         * This reduces storage space for hash values while maintaining uniqueness.
         *
         * @param hash the hash string to encode
         * @return the encoded hash string with prefix, or the original hash if encoding fails
         */
        public String encodeSimilarDocHash(final String hash) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:27:04 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Same inputs and output should have same hash code
            assertEquals(item1.hashCode(), item2.hashCode());
    
            // Different inputs should have different hash code
            assertNotSame(item1.hashCode(), item3.hashCode());
    
            // Same inputs but different output should have different hash code
            assertNotSame(item1.hashCode(), item4.hashCode());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

            final StringBuilder buf = new StringBuilder(50);
            for (int i = 0; i < docid.length(); i += splitSize) {
                int hash = docid.substring(i).hashCode() % splitHashSize;
                if (hash < 0) {
                    hash *= -1;
                }
                buf.append('_').append(Integer.toString(hash)).append('/');
            }
            buf.append(docid).append('.').append(imageExtention);
            return buf.toString();
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 27.2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

         * Encodes special characters using URL encoding or Base64 encoding as needed,
         * then applies a message digest algorithm to create a unique hash.
         *
         * @param urlId the URL ID string to generate a hash for
         * @return a hashed ID string generated from the input URL ID
         */
        protected String generateId(final String urlId) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 15.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/job/IndexExportJob.java

            try {
                final MessageDigest md = MessageDigest.getInstance("SHA-256");
                final byte[] hash = md.digest(input.getBytes(StandardCharsets.UTF_8));
                final StringBuilder sb = new StringBuilder();
                for (final byte b : hash) {
                    sb.append(String.format("%02x", b));
                }
                return sb.toString();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            PrunedTag tag2 = new PrunedTag("div");
            tag2.setId("test");
            tag2.setCss("highlight");
    
            // Equal objects must have equal hash codes
            assertEquals(tag1.hashCode(), tag2.hashCode());
    
            // Hash code should be consistent
            int hash1 = tag1.hashCode();
            int hash2 = tag1.hashCode();
            assertEquals(hash1, hash2);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/rank/fusion/DefaultSearcher.java

                                    if (bitsField != null && !bitsField.getValues().isEmpty()) {
                                        docMap.put(fessConfig.getQueryCollapseInnerHitsName() + "_hash", bitsField.getValues().get(0));
                                    }
                                    docMap.put(fessConfig.getQueryCollapseInnerHitsName(), StreamUtil.stream(innerSearchHits.getHits())
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 09:24:04 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessSecurityResourceProviderTest.java

            assertEquals(des, provider.providePrimaryInvertibleCryptographer());
            assertEquals(oneWayCryptographer, provider.providePrimaryOneWayCryptographer());
        }
    
        // Test with different hash algorithms
        @Test
        public void test_withSha512Cryptographer() {
            // Test with SHA512
            OneWayCryptographer sha512 = OneWayCryptographer.createSha512Cryptographer();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    }
                } catch (final ExecutionException e) {
                    logger.debug("Failed to access resource hash cache: path={}", input, e);
                }
            }
            return LaResponseUtil.getResponse().encodeURL(sb.toString());
        }
    
        /**
         * Encodes a string for similar document hash processing.
         *
         * @param input the string to encode
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.4K bytes
    - Click Count (1)
Back to Top